Files
MHache/dependencies/CMakeLists.txt

33 lines
827 B
CMake

include(FetchContent)
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
glfw
GIT_REPOSITORY "https://github.com/glfw/glfw.git"
GIT_TAG "45ce5ddd197d5c58f50fdd3296a5131c894e5527" # 3.37
)
FetchContent_Declare(
imgui
GIT_REPOSITORY "https://github.com/ocornut/imgui.git"
GIT_TAG "9aae45eb4a05a5a1f96be1ef37eb503a12ceb889" # 1.88
)
FetchContent_Declare(
tomlplusplus
GIT_REPOSITORY "https://github.com/marzer/tomlplusplus.git"
GIT_TAG "85c5128f90b4b4847df81ad546d7468afb46a7b4" # 3.1.0
)
FetchContent_MakeAvailable(glfw imgui tomlplusplus)
include_directories(
${glfw_SOURCE_DIR}/include
)
add_subdirectory(imgui)
add_subdirectory(tomlplusplus)