File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,8 +17,28 @@ FetchContent_Declare(
1717 GIT_TAG main
1818)
1919set (BUILD_GAVIOTA OFF CACHE BOOL "Enable Gaviota TB probing" FORCE )
20+ option (ENGINE_TUNING "enable Texel tuning (requires csv-parser)" OFF )
2021FetchContent_MakeAvailable (chesslib tbprobe)
21- add_executable (engine "main.cpp" "timeman.cpp" "timeman.h" "eval.h" "eval.cpp" "tune.h" "ucioption.h" "tune.cpp" "ucioption.cpp" "tt.h" "tt.cpp" "uci.cpp" "uci.h" "search.h" "search.cpp" "score.h" "score.cpp" "movepick.h" "movepick.cpp" "tb.h" "tb.cpp" "Weights.h" "tune_cmd.h" "tune_cmd.cpp" )
22+ set (SOURCES
23+ "main.cpp"
24+ "timeman.cpp"
25+ "eval.cpp"
26+ "tune.cpp"
27+ "ucioption.cpp"
28+ "tt.cpp"
29+ "uci.cpp"
30+ "search.cpp"
31+ "score.cpp"
32+ "movepick.cpp"
33+ "tb.cpp"
34+ )
35+
36+ if (ENGINE_TUNING)
37+ list (APPEND SOURCES "tune_cmd.cpp" )
38+ endif ()
39+
40+ add_executable (engine ${SOURCES} )
41+
2242target_link_libraries (engine PRIVATE chesslib syzygy_probe )
2343target_include_directories (engine PRIVATE ${CMAKE_CURRENT_SOURCE_DIR } ${chesslib_SOURCE_DIR } )
2444execute_process (
@@ -46,7 +66,6 @@ endif()
4666
4767message (STATUS "Build Version: ${BUILD_VERSION} " )
4868target_compile_definitions (engine PRIVATE BUILD_VERSION= "${BUILD_VERSION} " )
49- option (ENGINE_TUNING "enable Texel tuning (requires csv-parser)" OFF )
5069if (ENGINE_TUNING)
5170 FetchContent_Declare (
5271 csv
You can’t perform that action at this time.
0 commit comments