chessarbiter/CMakeLists.txt

13 lines
380 B
Text
Raw Normal View History

2022-01-29 11:52:47 +01:00
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/)
2022-01-29 11:52:47 +01:00
# Unit tests
set(COMPILE_TESTS OFF CACHE BOOL "Should unit tests be compiled")
if(COMPILE_TESTS)
enable_testing()
add_subdirectory(./tests)
endif()