Debug cmake integration

This commit is contained in:
Loic Guegan 2022-02-16 11:18:22 +01:00
parent a6f39855a3
commit 62d7a030d2
2 changed files with 3 additions and 8 deletions

View file

@ -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()

View file

@ -1,3 +1,4 @@
#pragma once
#include "Board.hpp"
#include "Fen.hpp"
#include <iostream>
@ -46,4 +47,4 @@ public:
bool IsDrawByRepetitions();
bool IsDraw();
};
} // namespace chessarbiter
} // namespace chessarbiter