mirror of
https://gitlab.com/manzerbredes/chessarbiter.git
synced 2025-04-19 03:59:42 +00:00
Init project
This commit is contained in:
commit
e9d328acf4
19 changed files with 23418 additions and 0 deletions
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(chessarbiter)
|
||||
|
||||
# Shared library
|
||||
add_library(chessarbiter SHARED src/Piece.cpp src/Board.cpp src/Fen.cpp src/ChessArbiter.cpp)
|
||||
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)
|
||||
|
||||
# Unit tests
|
||||
enable_testing()
|
||||
add_subdirectory(./tests)
|
Loading…
Add table
Add a link
Reference in a new issue