-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
56 lines (48 loc) · 1.31 KB
/
CMakeLists.txt
File metadata and controls
56 lines (48 loc) · 1.31 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
project(evolution)
cmake_minimum_required(VERSION 2.8)
#add_subdirectory(sfgui)
set(SRC_LIST
main.cpp
Application.cpp
Application.h
BlockMap.h
BlockMap.cpp
Buffer.h
GameOfLife/Cell.h
GameOfLife/GameOfLifeWorld.cpp
GameOfLife/GameOfLifeWorld.h
GameOfLife/GameOfLifeWorldRenderer.cpp
GameOfLife/GameOfLifeWorldRenderer.h
Grid.h
GridWorld/Cell.h
GridWorld/GridWorld.cpp
GridWorld/GridWorld.h
GridWorld/GridWorldRenderer.cpp
GridWorld/GridWorldRenderer.h
ModuloIntDistribution.h
PlantWorld/Cell.h
PlantWorld/PlantWorld.cpp
PlantWorld/PlantWorld.h
PlantWorld/PlantWorldRenderer.cpp
PlantWorld/PlantWorldRenderer.h
Position.h
PositionOffset.h
ProbabilityGenerator.h
Restorer.h
Simulation.h
Shader.h
VertexArrayObject.h
)
add_executable(evolution ${SRC_LIST})
set_property(TARGET evolution PROPERTY CXX_STANDARD 14)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
find_package(OpenMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -Wall")
find_package(OpenGL REQUIRED)
target_link_libraries(evolution ${OPENGL_LIBRARIES})
find_package(GLEW REQUIRED)
include_directories(${GLEW_INCLUDE_DIRS})
target_link_libraries(evolution ${GLEW_LIBRARIES})
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR})
target_link_libraries(evolution ${SDL2_LIBRARY})