-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (34 loc) · 1.22 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
cmake_minimum_required(VERSION 3.15)
project(GreedySnake)
include_directories(
include
include/solver
include/network
# include/solver/dqn
)
find_package(yaml-cpp REQUIRED)
include_directories(${YAML_CPP_INCLUDE_DIR})
find_package(X11 REQUIRED)
include_directories(${X11_INCLUDE_DIR})
add_library(${PROJECT_NAME} SHARED
src/food.cpp
src/game.cpp
src/map.cpp
src/snake.cpp
src/object.cpp
src/visualize.cpp
src/solver/base.cpp
src/solver/path.cpp
src/solver/greedy.cpp
src/solver/hamilton.cpp
src/network/server.cpp
src/network/client.cpp
)
add_executable(snake run.cpp)
add_executable(test_snake test.cpp)
add_executable(test_solver test_solver.cpp)
add_executable(test_path test_path.cpp)
target_link_libraries(snake ${PROJECT_NAME} yaml-cpp sfml-graphics sfml-window sfml-system sfml-network)
target_link_libraries(test_snake ${PROJECT_NAME} yaml-cpp sfml-graphics sfml-window sfml-system sfml-network)
target_link_libraries(test_solver ${PROJECT_NAME} yaml-cpp sfml-graphics sfml-window sfml-system sfml-network)
target_link_libraries(test_path ${PROJECT_NAME} yaml-cpp sfml-graphics sfml-window sfml-system sfml-network)