chessarbiter/CMakeLists.txt

13 lines
No EOL
380 B
CMake

cmake_minimum_required(VERSION 3.10)
project(chessarbiter)
# Shared library
add_library(chessarbiter STATIC src/Piece.cpp src/Board.cpp src/Fen.cpp src/ChessArbiter.cpp)
target_include_directories(chessarbiter PUBLIC src/)
# Unit tests
set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
if(COMPILE_TESTS)
enable_testing()
add_subdirectory(./tests)
endif()