-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (39 loc) · 985 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.10)
project(MyCharacterProject)
ADD_SUBDIRECTORY(googletest)
add_executable(test_char
src/Character.cpp
src/CharacterSelectionUI.cpp
test/testCharacter.cpp
)
add_executable(test_eg # eg = event graph
src/Event.cpp
src/Graph.cpp
test/testEventGraph.cpp
)
add_executable(rungame
src/Character.cpp
src/Event.cpp
src/Game.cpp
src/Graph.cpp
src/HomePageUI.cpp
src/main.cpp
src/SettingsUI.cpp
src/StoryUI.cpp
src/CharacterSelectionUI.cpp
)
add_executable(testgame
src/Character.cpp
src/CharacterSelectionUI.cpp
src/Event.cpp
src/Game.cpp
src/Graph.cpp
src/HomePageUI.cpp
test/testWholeGame.cpp
src/SettingsUI.cpp
src/StoryUI.cpp
)
TARGET_LINK_LIBRARIES(test_eg gtest)
TARGET_COMPILE_DEFINITIONS(test_eg PRIVATE gtest_disable_pthreads=ON)
TARGET_LINK_LIBRARIES(test_char gmock gtest gmock_main)
TARGET_LINK_LIBRARIES(testgame gmock gtest gmock_main)