-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
57 lines (50 loc) · 1.29 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
cmake_minimum_required(VERSION 3.21)
project(AltairChessEngine)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -flto")
# Default build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
find_package(Threads REQUIRED)
#set(GCC_COVERAGE_LINK_FLAGS "-static")
#set(CMAKE_EXE_LINKER_FLAGS "${GCC_COVERAGE_LINK_FLAGS}")
include_directories(.)
add_executable(Altair
src/constants.h
src/main.cpp
src/move.cpp
src/move.h
src/perft.cpp
src/perft.h
src/position.cpp
src/position.h
src/search.cpp
src/search.h
src/useful.cpp
src/useful.h
src/uci.cpp
src/uci.h
src/zobrist.h
src/bench.cpp
src/bench.h
src/see.cpp
src/see.h
src/types.h
src/bitboard.cpp
src/bitboard.h
src/attacks.h
src/fixed_vector.h
src/evaluation.cpp
src/evaluation.h
src/evaluation_constants.h
src/move_ordering.cpp
src/move_ordering.h
src/datagen.cpp
src/datagen.h
src/nnue.cpp
src/nnue.h
src/incbin.h
src/wdl.h src/simd.h src/timeman.cpp src/timeman.h)
target_link_libraries(Altair Threads::Threads)