-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
31 lines (25 loc) · 896 Bytes
/
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
cmake_minimum_required(VERSION 3.16.3)
project(ConnectFour C)
set(CMAKE_C_STANDARD 99)
if (CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE("\nDebug MODE\n")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG")
else ()
MESSAGE("\nRelease MODE\n")
endif ()
include(CTest)
add_test (utest ${EXECUTABLE_OUTPUT_PATH}/src/main/utest)
add_subdirectory(src/board)
add_subdirectory(src/gameMaster)
add_subdirectory(src/handlers/inputHandler)
add_subdirectory(src/handlers/outputHandler)
add_subdirectory(src/handlers/modeHandler)
add_subdirectory(src/handlers/computerHandler)
add_subdirectory(src/handlers/gameLogicHandler)
add_subdirectory(src/main)
target_link_libraries(utest board)
target_link_libraries(utest gameMaster)
target_link_libraries(utest computerHandler)
target_link_libraries(utest inputHandler)
target_link_libraries(utest gameLogicHandler)
target_link_libraries(utest modeHandler)