summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 9691335398365fcad036fa8fea6e539c44de4989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()