-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from dmeybohm/move-files
Reorganize includes
- Loading branch information
Showing
259 changed files
with
196 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,5 @@ if (WISDOM_CHESS_ASAN) | |
endif() | ||
endif() | ||
|
||
add_subdirectory(engine) | ||
add_subdirectory(ui) | ||
add_subdirectory(src) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(wisdom-chess) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(engine) | ||
add_subdirectory(ui) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(WisdomEngine CXX) | ||
|
||
find_package(Threads REQUIRED) | ||
|
||
CPMAddPackage("gh:foonathan/type_safe@0.2.3") | ||
CPMAddPackage("gh:microsoft/GSL@4.0.0") | ||
CPMAddPackage( | ||
NAME doctest | ||
GITHUB_REPOSITORY doctest/doctest | ||
GIT_TAG v2.4.11 | ||
OPTIONS | ||
"DOCTEST_NO_INSTALL On" | ||
) | ||
|
||
find_package(doctest) | ||
|
||
if (ANDROID OR NOT WISDOM_CHESS_PCH_ENABLED) | ||
# Disable precompile headers because there is a confict on android where it links | ||
# some code as PIC and some as non-PIC and can't combine them. | ||
set(PCH_ENABLED OFF) | ||
message("-- wisdom-chess: precompiled headers disabled") | ||
else() | ||
set(PCH_ENABLED ON) | ||
message("-- wisdom-chess: precompiled headers enabled") | ||
endif() | ||
|
||
add_library(wisdom-chess-core STATIC | ||
board_builder.hpp | ||
board_code.hpp | ||
board.hpp | ||
coord.hpp | ||
evaluate.hpp | ||
fen_parser.hpp | ||
game.hpp | ||
game_status.hpp | ||
generate.hpp | ||
global.hpp | ||
history.hpp | ||
logger.hpp | ||
material.hpp | ||
move.hpp | ||
move_list.hpp | ||
move_timer.hpp | ||
output_format.hpp | ||
piece.hpp | ||
position.hpp | ||
random.hpp | ||
search.hpp | ||
str.hpp | ||
threats.hpp | ||
board.cpp | ||
board_code.cpp | ||
coord.cpp | ||
evaluate.cpp | ||
fen_parser.cpp | ||
game.cpp | ||
game_status.cpp | ||
generate.cpp | ||
history.cpp | ||
logger.cpp | ||
material.cpp | ||
move.cpp | ||
move_list.cpp | ||
move_timer.cpp | ||
output_format.cpp | ||
piece.cpp | ||
position.cpp | ||
search.cpp | ||
str.cpp) | ||
|
||
if (PCH_ENABLED) | ||
target_precompile_headers(wisdom-chess-core PRIVATE PRIVATE global.hpp) | ||
else() | ||
target_sources(wisdom-chess-core PRIVATE global.hpp) | ||
endif() | ||
|
||
target_include_directories(wisdom-chess-core PUBLIC ../..) | ||
add_library(wisdom::chess ALIAS wisdom-chess-core) | ||
|
||
target_link_libraries(wisdom-chess-core PUBLIC Microsoft.GSL::GSL) | ||
target_link_libraries(wisdom-chess-core PUBLIC Threads::Threads) | ||
target_link_libraries(wisdom-chess-core PUBLIC type_safe) | ||
|
||
if (EMSCRIPTEN) | ||
target_compile_options(wisdom-chess-core PUBLIC -pthread) | ||
endif() | ||
|
||
if (NOT WIN32 AND NOT EMSCRIPTEN) | ||
message("-- wisdom-chess: stack protector disabled for performance") | ||
target_compile_options(wisdom-chess-core PUBLIC -fno-stack-protector) | ||
endif() | ||
|
||
if (doctest_FOUND) | ||
message("-- wisdom-chess: Including tests with doctest") | ||
add_subdirectory(test) | ||
else() | ||
message("-- wisdom-chess: Tests disabled (doctest not found)") | ||
set(WISDOM_CHESS_SLOW_TESTS Off) | ||
set(WISDOM_CHESS_FAST_TESTS Off) | ||
endif() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.