-
Notifications
You must be signed in to change notification settings - Fork 27
/
CMakeLists.txt
131 lines (87 loc) · 2.43 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
cmake_minimum_required (VERSION 3.10)
project(CyberBiology VERSION 1.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
#Sources
set(SOURCE_FILES
imgui/imgui.cpp
imgui/imgui.h
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/backends/imgui_impl_opengl3.cpp
imgui/backends/imgui_impl_opengl3.h
imgui/backends/imgui_impl_sdl.cpp
imgui/backends/imgui_impl_sdl.h
imgui/backends/imgui_impl_sdlrenderer.cpp
imgui/backends/imgui_impl_sdlrenderer.h
implot/implot.cpp
implot/implot.h
implot/implot_internal.h
implot/implot_demo.cpp
implot/implot_items.cpp
source/SDL.cpp
source/SDL.h
source/GUI.cpp
source/GUI.h
source/Settings.h
source/Systems.h
source/Bot.cpp
source/Bot.h
source/BotNeuralNet.cpp
source/BotNeuralNet.h
source/Field.cpp
source/Field.h
source/Main.cpp
source/Main.h
source/NeuralNetRenderer.cpp
source/NeuralNetRenderer.h
source/Neuron.cpp
source/Neuron.h
source/Object.cpp
source/Object.h
source/Organics.cpp
source/Organics.h
source/Rock.cpp
source/Rock.h
source/Apple.cpp
source/Apple.h
source/MyTypes.h
source/MyTypes.cpp
source/Chart.cpp
source/Chart.h
source/ObjectSaver.cpp
source/ObjectSaver.h
source/ImageFactory.cpp
source/ImageFactory.h
source/AutomaticAdaptation.cpp
source/AutomaticAdaptation.h
)
#Executable, target Windows
add_executable(${CMAKE_PROJECT_NAME} WIN32 ${SOURCE_FILES})
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
#dynamic libs
#target_link_libraries(${CMAKE_PROJECT_NAME}
#opengl32.lib
#${CMAKE_CURRENT_SOURCE_DIR}/SDL/lib/SDL2.lib)
#target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
#imgui
#imgui/backends
#implot
#SDL/include)
#static libs
target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC
imgui
imgui/backends
implot )
option(SDL2_DISABLE_INSTALL "" ON)
option(SDL2_DISABLE_SDL2MAIN "" ON)
option(SDL2_DISABLE_UNINSTALL "" ON)
option(BUILD_SHARED_LIBS "" OFF)
add_subdirectory(SDL)
target_link_libraries(${CMAKE_PROJECT_NAME}
opengl32.lib
SDL2-static)
#output to /bin folder
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)