-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
14 lines (11 loc) · 1.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 3.2)
project(Chess)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -std=c++11")
set(SOURCE_FILES main.cpp Square.cpp Square.h Board.cpp Board.h ChessPiece.cpp ChessPiece.h constants.h chesspieces/Rook.cpp chesspieces/Rook.h chesspieces/Bishop.cpp chesspieces/Bishop.h chesspieces/Knight.cpp chesspieces/Knight.h chesspieces/Pawn.cpp chesspieces/Pawn.h chesspieces/Queen.cpp chesspieces/Queen.h chesspieces/King.cpp chesspieces/King.h Player.cpp Player.h players/HumanPlayer.cpp players/HumanPlayer.cpp players/HumanPlayer.h Move.cpp Move.h players/RandomPlayer.cpp players/RandomPlayer.h players/MinMaxPlayer.cpp players/MinMaxPlayer.h Interface.cpp Interface.h PieceColor.cpp PieceColor.h players/MonteCarloPlayer.cpp players/MonteCarloPlayer.h players/HybridPlayer.cpp players/HybridPlayer.h)
add_executable(Chess ${SOURCE_FILES})
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED system window graphics network audio)
if (SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(Chess ${SFML_LIBRARIES})
endif()