-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
140 lines (120 loc) · 3.67 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
132
133
134
135
136
137
138
139
140
cmake_minimum_required(VERSION 3.0)
IF (WIN32)
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
ENDIF()
project(Falling-Elements)
find_package(OpenGL REQUIRED)
set (CMAKE_CXX_STANDARD 11)
# Compile external dependencies
add_subdirectory (external)
# On Visual 2005 and above, this module can set the debug working directory
cmake_policy(SET CMP0026 OLD)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/external/rpavlik-cmake-modules-fe2273")
include(CreateLaunchers)
include(MSVCMultipleProcessCompile) # /MP
if(INCLUDE_DISTRIB)
add_subdirectory(distrib)
endif(INCLUDE_DISTRIB)
include_directories(
external/glfw-3.3.8/include
external/glm-0.9.9.8/
external/glew-2.2.0/include
.
)
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
GLEW_220
)
add_definitions(
-DTW_STATIC
-DTW_NO_LIB_PRAGMA
-DTW_NO_DIRECT3D
-DGLEW_STATIC
-D_CRT_SECURE_NO_WARNINGS
)
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
GLEW_220
)
add_executable(Falling-Elements
src/Instrumentor.h
src/main.cpp
src/Application.h
src/Application.cpp
src/ShaderProgram.h
src/ShaderProgram.cpp
src/Renderer/GridRenderer.h
src/Renderer/GridRenderer.cpp
src/UI/UserInterface.h
src/UI/UserInterface.cpp
src/UI/TextureLoader/TextureLoader.hpp
src/UI/TextureLoader/TextureLoader.cpp
src/InputManager/InputManager.h
src/InputManager/InputManager.cpp
src/InputManager/Brush/Brush.h
src/InputManager/Brush/Brush.cpp
src/InputManager/Brush/SquareBrush.h
src/InputManager/Brush/SquareBrush.cpp
src/InputManager/Brush/CircleBrush.h
src/InputManager/Brush/CircleBrush.cpp
src/Cell/Cell.h
src/Cell/Cell.cpp
src/Cell/MovementBehavior/IMovementBehavior.h
src/Cell/MovementBehavior/IMovementBehavior.cpp
src/Cell/MovementBehavior/SandMovement.h
src/Cell/MovementBehavior/SandMovement.cpp
src/Cell/MovementBehavior/WaterMovement.h
src/Cell/MovementBehavior/WaterMovement.cpp
src/Cell/MovementBehavior/StaticMovement.h
src/Cell/MovementBehavior/StaticMovement.cpp
src/Cell/MovementBehavior/ParticleMovement.h
src/Cell/MovementBehavior/ParticleMovement.cpp
src/Cell/MovementBehavior/SmokeMovement.h
src/Cell/MovementBehavior/SmokeMovement.cpp
src/Cell/MovementBehavior/RockMovement.h
src/Cell/MovementBehavior/RockMovement.cpp
src/Cell/MovementBehavior/GazMovement.h
src/Cell/MovementBehavior/GazMovement.cpp
src/Cell/MovementBehavior/SteelMovement.h
src/Cell/MovementBehavior/SteelMovement.cpp
src/Cell/ThermicBehavior/IThermicBehavior.h
src/Cell/ThermicBehavior/IThermicBehavior.cpp
src/Cell/ThermicBehavior/DefaultThermic.h
src/Cell/ThermicBehavior/DefaultThermic.cpp
src/Cell/ThermicBehavior/WaterThermic.h
src/Cell/ThermicBehavior/WaterThermic.cpp
src/Cell/ThermicBehavior/LavaThermic.h
src/Cell/ThermicBehavior/LavaThermic.cpp
src/Cell/ThermicBehavior/RockThermic.h
src/Cell/ThermicBehavior/RockThermic.cpp
src/Cell/ThermicBehavior/SteamThermic.h
src/Cell/ThermicBehavior/SteamThermic.cpp
src/Cell/ThermicBehavior/FlameThermic.h
src/Cell/ThermicBehavior/FlameThermic.cpp
src/Cell/ThermicBehavior/FlammableThermic.h
src/Cell/ThermicBehavior/FlammableThermic.cpp
src/Cell/ThermicBehavior/IceThermic.h
src/Cell/ThermicBehavior/IceThermic.cpp
src/Cell/Factory/CellFactory.h
src/Cell/Factory/CellFactory.cpp
# STB IMAGE
src/vendor/stb/stb_image.h
# IMGUI
src/vendor/imgui/imconfig.h
src/vendor/imgui/imgui.h
src/vendor/imgui/imgui.cpp
src/vendor/imgui/imgui_draw.cpp
src/vendor/imgui/imgui_impl_glfw.cpp
src/vendor/imgui/imgui_impl_glfw.h
src/vendor/imgui/imgui_impl_opengl3.cpp
src/vendor/imgui/imgui_impl_opengl3.h
src/vendor/imgui/imgui_impl_opengl3_loader.h
src/vendor/imgui/imgui_internal.h
src/vendor/imgui/imgui_tables.cpp
src/vendor/imgui/imgui_widgets.cpp
)
target_link_libraries(Falling-Elements
${ALL_LIBS}
)