-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
77 lines (67 loc) · 1.52 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
cmake_minimum_required (VERSION 3.2)
project (GameServer VERSION 0.1 LANGUAGES CXX)
add_subdirectory(lib/TcpServer/TcpServer)
add_subdirectory(dbg/print_shm)
add_subdirectory(dbg/show_shm_layout)
#add_subdirectory(test)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "-Wall -pedantic")
find_package(Threads REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(src)
# put all .cpp and .h files into the sources variable
set(sources
src/Bot.cpp
src/Bot.h
src/BotThreadPool.cpp
src/BotThreadPool.h
src/BotUpDownThread.cpp
src/BotUpDownThread.h
src/config.h
src/debug_funcs.h
src/DockerBot.cpp
src/DockerBot.h
src/Field.cpp
src/Field.h
src/Food.cpp
src/Food.h
src/Game.cpp
src/Game.h
src/GUIDGenerator.cpp
src/GUIDGenerator.h
src/IdentifyableObject.cpp
src/IdentifyableObject.h
src/PositionObject.h
src/main.cpp
src/MsgPackProtocol.h
src/MsgPackUpdateTracker.cpp
src/MsgPackUpdateTracker.h
src/Semaphore.h
src/Snake.cpp
src/Snake.h
src/SpatialMap.h
src/types.h
src/UpdateTracker.h
src/Environment.h
src/Database.h src/Database.cpp
src/Stopwatch.h src/Stopwatch.cpp
docker4bots/spn_cpp_base/spn_cpp_framework/src/ipc_format.h
)
include_directories(
${CMAKE_PROJECT_NAME}
lib/msgpack-c/include/
lib/TcpServer/TcpServer/include/
docker4bots/spn_cpp_base/spn_cpp_framework/src/
/usr/include/jdbc/ # FIXME: autodetect
)
add_executable(
${CMAKE_PROJECT_NAME}
${sources}
)
target_link_libraries(
${CMAKE_PROJECT_NAME}
tcpserver
Threads::Threads
mysqlcppconn
)