2022-07-08 22:44:39 +02:00
|
|
|
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)
|
2022-07-06 21:02:31 +02:00
|
|
|
|
|
|
|
|
FetchContent_Declare(
|
2022-07-08 22:44:39 +02:00
|
|
|
glfw
|
|
|
|
|
GIT_REPOSITORY "https://github.com/glfw/glfw.git"
|
|
|
|
|
GIT_TAG "45ce5ddd197d5c58f50fdd3296a5131c894e5527" # 3.37
|
2022-07-06 21:02:31 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
FetchContent_Declare(
|
|
|
|
|
imgui
|
|
|
|
|
GIT_REPOSITORY "https://github.com/ocornut/imgui.git"
|
|
|
|
|
GIT_TAG "9aae45eb4a05a5a1f96be1ef37eb503a12ceb889" # 1.88
|
|
|
|
|
)
|
|
|
|
|
|
2022-07-10 02:11:41 +02:00
|
|
|
FetchContent_Declare(
|
|
|
|
|
tomlplusplus
|
|
|
|
|
GIT_REPOSITORY "https://github.com/marzer/tomlplusplus.git"
|
|
|
|
|
GIT_TAG "85c5128f90b4b4847df81ad546d7468afb46a7b4" # 3.1.0
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
FetchContent_MakeAvailable(glfw imgui tomlplusplus)
|
2022-07-13 21:27:06 +02:00
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
|
${glfw_SOURCE_DIR}/include
|
|
|
|
|
)
|
|
|
|
|
|
2022-07-08 22:44:39 +02:00
|
|
|
add_subdirectory(imgui)
|
2022-07-10 02:11:41 +02:00
|
|
|
add_subdirectory(tomlplusplus)
|