-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
25 lines (17 loc) · 1.24 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
cmake_minimum_required(VERSION 3.12)
project(sce)
message("finding tensorflow!!")
find_library(TENSORFLOW_LIB NAMES tensorflow HINTS "${CMAKE_SOURCE_DIR}/libs/tensorflow/")
message(${TENSORFLOW_LIB})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -march=native -DNDEBUG")
# ADD_DEFINITIONS(-D USE_NN=1)
# ADD_DEFINITIONS(-D USE_MSNN=1)
add_executable(SuperChessEngine src/main.cpp src/constants.h src/StaticEvaluator.cpp src/StaticEvaluator.h src/utils.cpp src/utils.h src/Engine.cpp src/Engine.h src/TT.h src/SearchInfo.h src/SearchThread.h src/uci.cpp src/uci.h src/SETT.h src/StaticEvaluatorNN.h src/StaticEvaluatorNN.cpp src/MoveSorterNN.cpp src/MoveSorterNN.h src/MSTT.h src/json.h)
target_link_libraries(SuperChessEngine -static)
target_link_libraries(SuperChessEngine -pthread)
target_link_libraries(SuperChessEngine ${CMAKE_SOURCE_DIR}/libs/libchess/build/static/libchess.a)
target_link_libraries(SuperChessEngine ${TENSORFLOW_LIB})
target_include_directories(SuperChessEngine PUBLIC ${CMAKE_SOURCE_DIR}/libs/tensorflow/include)
target_include_directories(SuperChessEngine PUBLIC ${CMAKE_SOURCE_DIR}/libs/libchess/src/libchess)
target_include_directories(SuperChessEngine PUBLIC ${CMAKE_SOURCE_DIR}/libs/cppflow)