diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ac28d2..c27724b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,13 +6,7 @@ add_library(chessarbiter SHARED src/Piece.cpp src/Board.cpp src/Fen.cpp src/Ches include_directories(src/) # Includes -set(CHESSARBITER_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/includes) # For conveniance -set(CHESSARBITER_INCLUDE_DIR ${CHESSARBITER_INCLUDE_DIR} PARENT_SCOPE) # To be used by other projects with add_subdirectory() -file(MAKE_DIRECTORY ${CHESSARBITER_INCLUDE_DIR}) -configure_file(src/Piece.hpp ${CHESSARBITER_INCLUDE_DIR}/pgnp.hpp COPYONLY) -configure_file(src/Board.hpp ${CHESSARBITER_INCLUDE_DIR} COPYONLY) -configure_file(src/Fen.hpp ${CHESSARBITER_INCLUDE_DIR} COPYONLY) -configure_file(src/ChessArbiter.hpp ${CHESSARBITER_INCLUDE_DIR} COPYONLY) +set(CHESSARBITER_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src PARENT_SCOPE) # To be used by other projects with add_subdirectory() # Unit tests enable_testing() diff --git a/src/ChessArbiter.hpp b/src/ChessArbiter.hpp index 488ca7c..09d8295 100644 --- a/src/ChessArbiter.hpp +++ b/src/ChessArbiter.hpp @@ -1,3 +1,4 @@ +#pragma once #include "Board.hpp" #include "Fen.hpp" #include @@ -46,4 +47,4 @@ public: bool IsDrawByRepetitions(); bool IsDraw(); }; -} // namespace chessarbiter \ No newline at end of file +} // namespace chessarbiter