commit d38fae0dac850deebce7355d806bfeac15776fd5
parent 7bfd425bdb622ab79089b11a8b6648226125079e
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date: Mon, 11 Mar 2024 15:32:43 +0000
Get rid of precompiled headers
Diffstat:
8 files changed, 4 insertions(+), 33 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -3,7 +3,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(
Stellar
- VERSION 1.2.3
+ VERSION 1.2.4
DESCRIPTION "Chess engine written in C++"
HOMEPAGE_URL https://git.dimitrijedobrota.com/stellar.git
LANGUAGES CXX
@@ -25,15 +25,6 @@ set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
FORCE
)
-include(CheckCXXCompilerFlag)
-
-option(STELLAR_ENABLE_PCH "Build using pre-compiled headers" ON)
-function(stellar_target_precompile_headers)
- if(STELLAR_ENABLE_PCH)
- target_precompile_headers(${ARGV})
- endif()
-endfunction()
-
add_subdirectory(src)
include(CheckIPOSupported)
diff --git a/src/arena/engine.hpp b/src/arena/engine.hpp
@@ -1,7 +1,9 @@
#ifndef STELLAR_ARENA_ENGINE_H
#define STELLAR_ARENA_ENGINE_H
+#include <cstdint>
#include <queue>
+#include <string>
class Engine {
public:
diff --git a/src/arena/logger.hpp b/src/arena/logger.hpp
@@ -5,6 +5,7 @@
#include <cerrno>
#include <cstring>
#include <format>
+#include <iostream>
namespace logger {
diff --git a/src/attack/CMakeLists.txt b/src/attack/CMakeLists.txt
@@ -9,14 +9,3 @@ target_link_libraries(attack
)
target_include_directories(attack INTERFACE .)
-
-stellar_target_precompile_headers(attack
- PRIVATE "bishop.hpp"
- PRIVATE "king.hpp"
- PRIVATE "knight.hpp"
- PRIVATE "pawnb.hpp"
- PRIVATE "pawnw.hpp"
- PRIVATE "queen.hpp"
- PRIVATE "rook.hpp"
- PRIVATE "slider.hpp"
-)
diff --git a/src/board/CMakeLists.txt b/src/board/CMakeLists.txt
@@ -9,6 +9,3 @@ target_link_libraries(board
)
target_include_directories(board INTERFACE .)
-stellar_target_precompile_headers(board INTERFACE "board.hpp")
-
-
diff --git a/src/piece/CMakeLists.txt b/src/piece/CMakeLists.txt
@@ -7,5 +7,3 @@ target_link_libraries(piece
)
target_include_directories(piece INTERFACE .)
-stellar_target_precompile_headers(piece INTERFACE "piece.hpp")
-
diff --git a/src/random/CMakeLists.txt b/src/random/CMakeLists.txt
@@ -1,4 +1,3 @@
add_library(random INTERFACE)
target_link_libraries(piece INTERFACE utils)
target_include_directories(random INTERFACE .)
-stellar_target_precompile_headers(random INTERFACE "random.hpp")
diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt
@@ -1,23 +1,17 @@
add_library(bit INTERFACE)
target_include_directories(bit INTERFACE .)
-stellar_target_precompile_headers(bit INTERFACE "bit.hpp")
add_library(bitboard INTERFACE bitboard.cpp)
target_include_directories(bitboard INTERFACE .)
-stellar_target_precompile_headers(bitboard INTERFACE "bitboard.hpp")
add_library(color INTERFACE)
target_include_directories(color INTERFACE .)
-stellar_target_precompile_headers(color INTERFACE "color.hpp")
add_library(square INTERFACE)
target_include_directories(square INTERFACE .)
-stellar_target_precompile_headers(square INTERFACE "square.hpp")
add_library(timer INTERFACE)
target_include_directories(timer INTERFACE .)
-stellar_target_precompile_headers(timer INTERFACE "timer.hpp")
add_library(utils INTERFACE)
target_include_directories(utils INTERFACE .)
-stellar_target_precompile_headers(utils INTERFACE "utils.hpp")