-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
44 lines (32 loc) · 1.2 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
cmake_minimum_required (VERSION 3.11.1)
include("gate/cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.20.61.tar.gz"
SHA1 "b66f77ffdf97d9b318b86817b79991f4c45d3de1"
)
project (HeartsNN)
add_definitions(-march=native)
include_directories(${PROJECT_SOURCE_DIR})
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
hunter_add_package(dlib)
find_package(dlib CONFIG REQUIRED)
include(tensorflow.cmake)
add_executable(analyze analyze.cpp)
add_executable(deal deal.cpp)
add_executable(disttest disttest.cpp)
add_executable(hearts hearts.cpp)
add_executable(tournament tournament.cpp)
add_executable(validate validate.cpp)
add_executable(numpywriter numpywriter.cpp)
add_executable(play play.cpp)
add_subdirectory(lib)
set(ALL_LIBRARIES lib ${TensorFlow_LIBRARIES} dlib::dlib)
target_link_libraries(analyze ${ALL_LIBRARIES})
target_link_libraries(deal ${ALL_LIBRARIES})
target_link_libraries(disttest ${ALL_LIBRARIES})
target_link_libraries(hearts ${ALL_LIBRARIES})
target_link_libraries(tournament ${ALL_LIBRARIES})
target_link_libraries(validate ${ALL_LIBRARIES})
target_link_libraries(numpywriter ${ALL_LIBRARIES})
target_link_libraries(play ${ALL_LIBRARIES})
add_subdirectory(play_hearts)