-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (46 loc) · 1.12 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
cmake_minimum_required(VERSION 3.0)
project(Alife)
set (FLAGS "-std=c++11 -g")
set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${FLAGS})
set (SRC_DIR ./src)
include_directories(${SRC_DIR})
option(TRACE "Enable traces..." OFF)
if (TRACE)
message("-- Turning traces on...")
add_definitions("-DTRACE")
endif(TRACE)
option(DEBUG "Enable debug prints..." OFF)
if (DEBUG)
message("-- Turning debug prints on...")
add_definitions("-DDEBUG")
endif(DEBUG)
set (SIM_HDR
${SRC_DIR}/SupportTypes.h
${SRC_DIR}/IdGenerator.h
${SRC_DIR}/Configs.h
${SRC_DIR}/AlifeSim.h
${SRC_DIR}/Animal.h
${SRC_DIR}/Carnivor.h
${SRC_DIR}/Herbivor.h
${SRC_DIR}/Brain.h
${SRC_DIR}/Eyes.h
${SRC_DIR}/LivingOrganisms.h
${SRC_DIR}/Plant.h
${SRC_DIR}/World.h
)
set (SIM_SRC
${SRC_DIR}/main.cpp
${SRC_DIR}/IdGenerator.cpp
${SRC_DIR}/Configs.cpp
${SRC_DIR}/AlifeSim.cpp
${SRC_DIR}/Animal.cpp
${SRC_DIR}/Carnivor.cpp
${SRC_DIR}/Herbivor.cpp
${SRC_DIR}/Brain.cpp
${SRC_DIR}/Eyes.cpp
${SRC_DIR}/LivingOrganisms.cpp
${SRC_DIR}/Plant.cpp
${SRC_DIR}/World.cpp
)
add_subdirectory(tests)
add_executable(alife ${SIM_HDR} ${SIM_SRC})