-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
55 lines (42 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
include(FetchContent)
# Dependencies
FetchContent_Declare(
doctest
GIT_REPOSITORY "https://github.com/onqtam/doctest.git"
GIT_TAG v2.4.11
)
FetchContent_Declare(
fmt
GIT_REPOSITORY "https://github.com/fmtlib/fmt.git"
GIT_TAG 11.0.1
)
FetchContent_Declare(
glad
GIT_REPOSITORY "https://github.com/krieselreihe/glad.git"
GIT_TAG v1.0.0
)
FetchContent_Declare(
imgui
GIT_REPOSITORY "https://github.com/ocornut/imgui.git"
GIT_TAG 527b2c45af2f8964f95826bd16ab7c7ed372ae41 # Branch: docking, date: 02.07.2024, 19:05 GMT+2
)
FetchContent_Declare(
SDL2
GIT_REPOSITORY "https://github.com/libsdl-org/SDL.git"
GIT_TAG release-2.30.5
)
FetchContent_Declare(
spdlog
GIT_REPOSITORY "https://github.com/gabime/spdlog.git"
GIT_TAG v1.14.1
)
# Settings
# For SDL2 to be able to override options
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(DOCTEST_NO_INSTALL ON)
set(FMT_INSTALL OFF)
set(SDL2_DISABLE_SDL2MAIN ON)
set(SPDLOG_FMT_EXTERNAL ON)
add_subdirectory(imgui-setup)
# Populate
FetchContent_MakeAvailable(doctest fmt glad imgui SDL2 spdlog)