Files
Destrum/destrum/third_party/CMakeLists.txt

53 lines
1.5 KiB
CMake

# glm
add_subdirectory(glm)
# stb
add_subdirectory(stb)
# SDL
if (NOT BUILD_SHARED_LIBS)
set(SDL_SHARED_ENABLED_BY_DEFAULT OFF CACHE BOOL "Don't build SDL as shared lib")
endif()
option(SDL_TEST "Build the SDL2_test library" OFF)
option(SDL_AUDIO_ENABLED_BY_DEFAULT "Enable the Audio subsystem" OFF)
add_subdirectory(sdl)
add_subdirectory(vk-bootstrap)
if (MSVC)
target_compile_definitions(vk-bootstrap PRIVATE $<$<CONFIG:Debug>:_ITERATOR_DEBUG_LEVEL=1>)
endif()
if (BUILD_SHARED_LIBS)
set_target_properties(vk-bootstrap PROPERTIES
POSITION_INDEPENDENT_CODE ON
)
endif()
# vma
add_subdirectory(vma)
# volk
add_subdirectory(volk)
# FreeType
option(FT_DISABLE_ZLIB
"Disable use of system zlib and use internal zlib library instead." ON)
option(FT_DISABLE_BZIP2
"Disable support of bzip2 compressed fonts." ON)
option(FT_DISABLE_BROTLI
"Disable support of compressed WOFF2 fonts." ON)
option(FT_DISABLE_HARFBUZZ
"Disable HarfBuzz (used for improving auto-hinting of OpenType fonts)." ON)
option(FT_DISABLE_PNG
"Disable support of PNG compressed OpenType embedded bitmaps." ON)
option(SKIP_INSTALL_ALL "Skip install all" ON)
option(FT_ENABLE_ERROR_STRINGS
"Enable support for meaningful error descriptions." ON)
add_subdirectory(freetype)
add_library(freetype::freetype ALIAS freetype)
# nlohmann_json
option(JSON_MultipleHeaders "Use non-amalgamated version of the library." ON)
option(JSON_Install "Install CMake targets during install step." OFF)
add_subdirectory(json)
add_subdirectory(spdlog)