-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencies.cmake
More file actions
81 lines (67 loc) · 1.84 KB
/
Dependencies.cmake
File metadata and controls
81 lines (67 loc) · 1.84 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
include(cmake/CPM.cmake)
function(raylib_imgui_setup_dependencies target)
message(STATUS "Adding Dear ImGui v1.92.1")
CPMAddPackage(
NAME ImGui
GIT_REPOSITORY https://github.com/ocornut/imgui
GIT_TAG v1.92.1
)
message(STATUS "Adding raylib")
CPMAddPackage(
NAME raylib
GIT_REPOSITORY https://github.com/raysan5/raylib
GIT_TAG bbf884d7b3068089d007ccc9a9eac0e7ea59af2b
)
message(STATUS "Adding raygui")
CPMAddPackage(
NAME raygui
GIT_REPOSITORY https://github.com/raysan5/raygui
GIT_TAG 9193f38424f75290eb3b53db6a940606daa14af9
)
message(STATUS "Adding spdlog v1.15.3")
CPMAddPackage(
NAME spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog
GIT_TAG v1.15.3
)
message(STATUS "Adding pugixml v1.15")
CPMAddPackage(
NAME pugixml
GIT_REPOSITORY https://github.com/zeux/pugixml
GIT_TAG v1.15
)
message(STATUS "Adding glaze v5.6.1")
CPMAddPackage(
NAME glaze
GIT_REPOSITORY https://github.com/stephenberry/glaze
GIT_TAG v5.6.1
GIT_SHALLOW TRUE
)
message(STATUS "Adding rlImGui")
CPMAddPackage(
NAME rlImGui
GIT_REPOSITORY https://github.com/raylib-extras/rlImGui
GIT_TAG 4d8a61842903978bc42adf3347cd34f4e6524efc
)
add_library(imgui STATIC
${ImGui_SOURCE_DIR}/imgui.cpp
${ImGui_SOURCE_DIR}/imgui_draw.cpp
${ImGui_SOURCE_DIR}/imgui_widgets.cpp
${ImGui_SOURCE_DIR}/imgui_tables.cpp
)
target_include_directories(imgui PUBLIC ${ImGui_SOURCE_DIR})
add_library(rlimgui STATIC
${rlImGui_SOURCE_DIR}/rlImGui.cpp
)
target_include_directories(rlimgui PUBLIC
${rlImGui_SOURCE_DIR}
${ImGui_SOURCE_DIR}
)
target_link_libraries(rlimgui PUBLIC
imgui
raylib
)
target_include_directories(${target} PUBLIC
${raygui_SOURCE_DIR}/src
)
endfunction()