-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (51 loc) · 1.21 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
cmake_minimum_required(VERSION 3.12)
# Project
project(Funes VERSION 1.0 LANGUAGES CXX)
# Base directory relative includes
include_directories(.)
# Flags
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-pthread")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -flto -march=native -mpopcnt")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE)
# Default build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
# Add the executable
add_executable(
Funes
src/main.cpp
src/bitboard.cpp
src/board.cpp
src/uai.cpp
src/lookup.cpp
src/hashtables.cpp
src/moves.cpp
src/eval.cpp
src/alphabeta/search.cpp
src/alphabeta/sort.cpp
src/mcts/rollouts.cpp
src/tuners/genetic/main.cpp
src/tuners/genetic/population.cpp
src/tuners/genetic/player.cpp
)
# Add the executable
add_executable(
Funes-tests
src/lookup.cpp
src/bitboard.cpp
src/board.cpp
src/hashtables.cpp
src/moves.cpp
src/eval.cpp
src/uai.cpp
src/alphabeta/search.cpp
src/alphabeta/sort.cpp
src/mcts/rollouts.cpp
tests/main.cpp
tests/test_mates.cpp
tests/test_lookup_tables.cpp
tests/test_hashtable_keys.cpp
)