-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (35 loc) · 1.12 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
cmake_minimum_required(VERSION 3.3)
project(reversi CXX)
include(.cs211/cmake/CMakeLists.txt)
# Defines a variable to stand for the .cxx files that implement
# the model.
set(MODEL_SRC
src/player.cxx
src/move.cxx
src/board.cxx
src/model.cxx)
# Adds a program named `reversi` built from the listed source
# files and the common model files.
add_program(reversi
src/reversi.cxx
src/controller.cxx
src/view.cxx
${MODEL_SRC})
target_link_libraries(reversi ge211)
# Adds a test program named `model_test` built from the listed
# source file and the common model files.
add_test_program(model_test
test/model_test.cxx
${MODEL_SRC})
target_link_libraries(model_test ge211)
# Adds a test program named `helper_test` for testing the helper
# classes.
add_test_program(helper_test
test/player_test.cxx
test/move_test.cxx
test/board_test.cxx
${MODEL_SRC})
target_link_libraries(helper_test ge211)
## Uncommment this next line to get board multireferences:
target_compile_definitions(helper_test PUBLIC BOARD_INDEX_OVERLOAD)
# vim: ft=cmake