stellar

Stellar - UCI Chess engine written in C++20
git clone git://git.dimitrijedobrota.com/stellar.git
Log | Files | Refs | README | LICENSE

commit 8bfcf04517460ec1e051df56703b6881d64f279c
parent 2f3a26c1d985412b453547ebd5c01190e378684e
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date:   Wed, 13 Mar 2024 20:13:38 +0000

Move bitboard from utils and cleanup CMakeList.txt

Diffstat:
MCMakeLists.txt | 2+-
Msrc/arena/CMakeLists.txt | 3++-
Msrc/attack/CMakeLists.txt | 3---
Asrc/bitboard/CMakeLists.txt | 2++
Rsrc/utils/bitboard.cpp -> src/bitboard/bitboard.cpp | 0
Rsrc/utils/bitboard.hpp -> src/bitboard/bitboard.hpp | 0
Msrc/board/CMakeLists.txt | 3++-
Msrc/engine/CMakeLists.txt | 3++-
Msrc/move/CMakeLists.txt | 3++-
Msrc/perft/CMakeLists.txt | 1+
Msrc/piece/CMakeLists.txt | 1-
Msrc/utils/CMakeLists.txt | 15---------------
12 files changed, 12 insertions(+), 24 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -3,7 +3,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project( Stellar - VERSION 1.3.1 + VERSION 1.3.2 DESCRIPTION "Chess engine written in C++" HOMEPAGE_URL https://git.dimitrijedobrota.com/stellar.git LANGUAGES CXX diff --git a/src/arena/CMakeLists.txt b/src/arena/CMakeLists.txt @@ -1,12 +1,13 @@ add_executable(arena arena.cpp - match.cpp engine.cpp game.cpp + match.cpp ) target_link_libraries(arena PRIVATE Stellar_version + PRIVATE bitboard PRIVATE board PRIVATE moves PRIVATE piece diff --git a/src/attack/CMakeLists.txt b/src/attack/CMakeLists.txt @@ -1,10 +1,7 @@ add_library(attack attack.cpp bishop.cpp rook.cpp) target_link_libraries(attack - PRIVATE bit PRIVATE bitboard - PRIVATE color - PRIVATE square PRIVATE utils ) diff --git a/src/bitboard/CMakeLists.txt b/src/bitboard/CMakeLists.txt @@ -0,0 +1,2 @@ +add_library(bitboard INTERFACE) +target_include_directories(bitboard INTERFACE .) diff --git a/src/utils/bitboard.cpp b/src/bitboard/bitboard.cpp diff --git a/src/utils/bitboard.hpp b/src/bitboard/bitboard.hpp diff --git a/src/board/CMakeLists.txt b/src/board/CMakeLists.txt @@ -3,8 +3,9 @@ add_library(board OBJECT ) target_link_libraries(board + PRIVATE bitboard PRIVATE utils - PUBLIC piece + PRIVATE piece PUBLIC random ) diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt @@ -1,12 +1,13 @@ add_executable(engine + engine.cpp evaluate.cpp uci.cpp - engine.cpp ) target_link_libraries(engine PRIVATE Stellar_version + PRIVATE bitboard PRIVATE board PRIVATE moves PRIVATE piece diff --git a/src/move/CMakeLists.txt b/src/move/CMakeLists.txt @@ -4,8 +4,9 @@ add_library(moves OBJECT ) target_link_libraries(moves - PRIVATE piece + PRIVATE bitboard PRIVATE board + PRIVATE piece PRIVATE utils ) diff --git a/src/perft/CMakeLists.txt b/src/perft/CMakeLists.txt @@ -6,6 +6,7 @@ if(STELLAR_FULL_COUNT) endif() target_link_libraries(perft + PRIVATE bitboard PRIVATE board PRIVATE moves PRIVATE piece diff --git a/src/piece/CMakeLists.txt b/src/piece/CMakeLists.txt @@ -3,7 +3,6 @@ add_library(piece INTERFACE) target_link_libraries(piece INTERFACE attack INTERFACE utils - INTERFACE color ) target_include_directories(piece INTERFACE .) diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt @@ -1,17 +1,2 @@ -add_library(bit INTERFACE) -target_include_directories(bit INTERFACE .) - -add_library(bitboard INTERFACE bitboard.cpp) -target_include_directories(bitboard INTERFACE .) - -add_library(color INTERFACE) -target_include_directories(color INTERFACE .) - -add_library(square INTERFACE) -target_include_directories(square INTERFACE .) - -add_library(timer INTERFACE) -target_include_directories(timer INTERFACE .) - add_library(utils INTERFACE) target_include_directories(utils INTERFACE .)