69 lines
1.6 KiB
CMake
69 lines
1.6 KiB
CMake
# CMakeList.txt : Top-level CMake project file, do global configuration
|
|
# and include sub-projects here.
|
|
#
|
|
cmake_minimum_required (VERSION 3.11)
|
|
|
|
# Enable Hot Reload for MSVC compilers if supported.
|
|
if (POLICY CMP0141)
|
|
cmake_policy(SET CMP0141 NEW)
|
|
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
|
|
endif()
|
|
|
|
include(FetchContent)
|
|
|
|
SET(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
|
#SET(SOL_LUAJIT 1)
|
|
|
|
SET(TRACY_ENABLE 1)
|
|
SET(TRACY_ON_DEMAND 1)
|
|
SET(TRACY_ONLY_LOCALHOST 1)
|
|
|
|
SET(FT_DISABLE_BROTLI 1)
|
|
SET(FT_DISABLE_BZIP2 1)
|
|
SET(FT_DISABLE_HARFBUZZ 1)
|
|
SET(FT_DISABLE_PNG 1)
|
|
SET(FT_DISABLE_ZLIB 1)
|
|
|
|
option(GLM_ENABLE_FAST_MATH OFF)
|
|
|
|
FetchContent_Declare(
|
|
tracy
|
|
GIT_REPOSITORY https://github.com/wolfpld/tracy.git
|
|
GIT_TAG v0.11.1
|
|
GIT_SHALLOW TRUE
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
tinyxml2
|
|
GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git
|
|
GIT_TAG 10.0.0
|
|
GIT_SHALLOW TRUE
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
sol2
|
|
GIT_REPOSITORY https://github.com/ThePhD/sol2.git
|
|
GIT_TAG v3.3.1
|
|
GIT_SHALLOW TRUE
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
|
|
FetchContent_Declare(
|
|
freetype
|
|
GIT_REPOSITORY https://github.com/freetype/freetype.git
|
|
GIT_TAG VER-2-13-3
|
|
GIT_SHALLOW TRUE
|
|
GIT_PROGRESS TRUE
|
|
)
|
|
|
|
FetchContent_MakeAvailable(tracy)
|
|
FetchContent_MakeAvailable(tinyxml2)
|
|
FetchContent_MakeAvailable(sol2)
|
|
FetchContent_MakeAvailable(freetype)
|
|
|
|
project ("YuppleMayham")
|
|
|
|
# Include sub-projects.
|
|
add_subdirectory ("YuppleMayham")
|