mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-18 18:56:36 +02:00
initial import, >900commits predate this
This commit is contained in:
51
external/CMakeLists.txt
vendored
Normal file
51
external/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
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()
|
||||
|
||||
|
Reference in New Issue
Block a user