-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
28 lines (20 loc) · 991 Bytes
/
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
cmake_minimum_required(VERSION 3.26)
project(CorinthoAI)
set(CMAKE_CXX_STANDARD 17)
set(GTEST_PATH "googletest/googletest")
set(GSL_PATH "gsl")
set(CPP_PATH "corintho_ai/cpp")
set(TEST_PATH "tests/cpp")
set(CMAKE_CXX_FLAGS "--coverage -fopenmp -g -pg -O3")
include_directories(${GTEST_PATH}/include ${GSL_PATH}/include ${CPP_PATH}/include)
link_directories(googletest/lib)
add_executable(
CorinthoAI ${TEST_PATH}/main.cpp
${TEST_PATH}/move_test.cpp ${TEST_PATH}/game_test.cpp ${TEST_PATH}/node_test.cpp
${TEST_PATH}/trainmc_test.cpp ${TEST_PATH}/selfplayer_test.cpp ${TEST_PATH}/trainer_test.cpp
${TEST_PATH}/match_test.cpp ${TEST_PATH}/tourney_test.cpp
${CPP_PATH}/src/util.cpp ${CPP_PATH}/src/move.cpp ${CPP_PATH}/src/game.cpp ${CPP_PATH}/src/node.cpp
${CPP_PATH}/src/trainmc.cpp ${CPP_PATH}/src/selfplayer.cpp ${CPP_PATH}/src/trainer.cpp
${CPP_PATH}/src/match.cpp ${CPP_PATH}/src/tourney.cpp
)
target_link_libraries(CorinthoAI gtest gtest_main pthread)