-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (49 loc) · 1.42 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
56
57
cmake_minimum_required(VERSION 3.21)
project(GalaxySimulationUI)
set(CMAKE_CXX_STANDARD 20)
set(IMGUI_DIR ./imgui)
set(IMGUI_SOURCES
${IMGUI_DIR}/imgui.cpp
${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_widgets.cpp
${IMGUI_DIR}/imgui_demo.cpp
${IMGUI_DIR}/imgui_tables.cpp
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp
imconfig.h
)
set(IMPLOT_DIR ./implot)
set(IMPLOT_SOURCES
${IMPLOT_DIR}/implot.cpp
${IMPLOT_DIR}/implot_demo.cpp
${IMPLOT_DIR}/implot_items.cpp
)
set(GLFW_PATH ./glfw)
set(WINDOW_SOURCES
windows/window_handler.h
windows/run_sim.h
windows/header.h
windows/window_logs.h
windows/window_graphics.h
)
set(SOURCES
main.cpp
components/LiveLogViewer.cpp components/LiveLogViewer.h
components/imgui_custom.h
includes/Vector3.h
includes/CommandLine.h
includes/Globals.h includes/Globals.cpp
includes/ConfigStruct.h
includes/json.h
)
include_directories(
${IMPLOT_DIR}
${IMGUI_DIR}
${IMGUI_DIR}/backends
components
includes
)
find_package(OpenGL REQUIRED)
add_subdirectory(${GLFW_PATH})
add_executable(GalaxySimulationUI main.cpp ${SOURCES} ${WINDOW_SOURCES} ${IMGUI_SOURCES} ${IMPLOT_SOURCES})
target_link_libraries(GalaxySimulationUI glfw ${OPENGL_gl_LIBRARY})