-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
42 lines (34 loc) · 1.2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# FILEPATH: /home/dev/poker-workshop/CMakeLists.txt
set(CMAKE_CXX_STANDARD 17)
cmake_minimum_required(VERSION 3.0)
project(PokerWorkshop)
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-Ofast")
set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
set(SRC_DIR ${PROJECT_SOURCE_DIR}/src)
set(TEST_DIR ${PROJECT_SOURCE_DIR}/tests)
set(TOOLS_DIR ${PROJECT_SOURCE_DIR}/tools)
set(THAND_STRENGTHS_DIR ${TOOLS_DIR}/hand_strengths)
set(TDATA_ANALYTICS_DIR ${TOOLS_DIR}/data_analytics)
set(PLAYER_DIR ${SRC_DIR}/players)
set(CHECK_PLAYER ${PLAYER_DIR}/check_player/check_player.cpp)
set(RAND_PLAYER ${PLAYER_DIR}/rand_player/rand_player.cpp)
set(HUMAN_PLAYER ${PLAYER_DIR}/human_player/human_player.cpp)
set(TEST_PLAYER ${PLAYER_DIR}/test_player/test_player.cpp)
include(FetchContent)
FetchContent_Declare(
plog
GIT_REPOSITORY https://github.com/SergiusTheBest/plog
GIT_TAG 1.1.10
)
FetchContent_MakeAvailable(plog)
# add to includes
include_directories(${plog_SOURCE_DIR}/include)
# Print all the variables
get_cmake_property(_variableNames VARIABLES)
add_subdirectory(src)
add_subdirectory(tools)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_subdirectory(tests)
endif()