mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-11-11 01:33:03 +01:00
52 lines
1.1 KiB
CMake
52 lines
1.1 KiB
CMake
|
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
|
||
|
|
||
|
# external libs
|
||
|
|
||
|
if (BUILD_TESTING)
|
||
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||
|
add_subdirectory("googletest")
|
||
|
endif()
|
||
|
|
||
|
add_subdirectory("spdlog")
|
||
|
|
||
|
#include("${CMAKE_CURRENT_SOURCE_DIR}/tracy.cmake")
|
||
|
add_subdirectory("tracy")
|
||
|
|
||
|
include("${CMAKE_CURRENT_SOURCE_DIR}/entt.cmake")
|
||
|
include("${CMAKE_CURRENT_SOURCE_DIR}/glm.cmake")
|
||
|
|
||
|
set(JSON_BuildTests OFF CACHE INTERNAL "")
|
||
|
set(JSON_MultipleHeaders ON CACHE INTERNAL "")
|
||
|
add_subdirectory("json") # link with "nlohmann_json::nlohmann_json"
|
||
|
|
||
|
set(PHYSFS_BUILD_SHARED FALSE CACHE INTERNAL "")
|
||
|
add_subdirectory("physfs")
|
||
|
|
||
|
if(NOT MM_HEADLESS)
|
||
|
if(NOT EMSCRIPTEN)
|
||
|
find_package(SDL2 REQUIRED)
|
||
|
endif()
|
||
|
|
||
|
if(NOT MM_OPENGL_3_GLES)
|
||
|
# opengl3 loader
|
||
|
add_subdirectory("glad-debug")
|
||
|
endif()
|
||
|
|
||
|
# stb utilies
|
||
|
add_subdirectory("stb")
|
||
|
|
||
|
# nice symbol font integration
|
||
|
include("${CMAKE_CURRENT_SOURCE_DIR}/icon_font_cpp_headers.cmake")
|
||
|
|
||
|
# (debug) gui
|
||
|
add_subdirectory("imgui")
|
||
|
|
||
|
# (debug) text editor
|
||
|
include("${CMAKE_CURRENT_SOURCE_DIR}/ImGuiColorTextEdit.cmake")
|
||
|
|
||
|
# sound, uses sdl2-static backend
|
||
|
add_subdirectory("soloud")
|
||
|
endif()
|
||
|
|
||
|
|