This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
127 lines (121 loc) · 4.58 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
cmake_minimum_required(VERSION 3.12)
project(ConcreteAbstracts)
enable_testing()
# ADD CPP EXECUTABLES HERE
add_executable(simulator
src/main.cpp
src/Country.cpp
include/Country.h
include/Registry.h
include/AllyRegistry.h
src/AllyRegistry.cpp
include/BattleRegistry.h
src/BattleRegistry.cpp
include/util/UnorderedPair.hpp
src/Citizens.cpp
src/Guardian.cpp
src/Marine.cpp
src/Medic.cpp
src/People.cpp
src/Pilot.cpp
src/RecruiterContext.cpp
src/Recruits.cpp
src/Refugee.cpp
src/Soldier.cpp
include/TransportContext.h
include/Transport.h
src/Transport.cpp
src/TransportContext.cpp
include/WeaponTransport.h
src/WeaponTransport.cpp
include/AttackVessel.h
src/AttackVessel.cpp
include/SuppliesTransport.h
src/SuppliesTransport.cpp
include/ArmoryFacade.h
src/ArmoryFacade.cpp
include/WarTheatre.h
src/WarTheatre.cpp
include/Trap.h
src/Trap.cpp
include/BattleGround.h
src/BattleGround.cpp
include/Air.h
src/Air.cpp
include/Land.h
src/Land.cpp
include/Sea.h
src/Sea.cpp
include/Space.h
src/Space.cpp
include/Mines.h
src/Mines.cpp
include/Barricades.h
src/Barricades.cpp
include/Trenches.h
src/Trenches.cpp
include/SpaceMagnets.h
src/SpaceMagnets.cpp
include/CountryHistory.h
include/CountryMemento.h
src/CountryHistory.cpp
src/CountryMemento.cpp
include/AttackWeapon.h
include/AttackWeaponCreator.h
include/ExplosiveWeaponCreator.h
include/ExplosiveWeapons.h
include/JetCreator.h
include/Jets.h
include/MeleeWeaponCreator.h
include/MeleeWeapons.h
include/NuclearWeaponCreator.h
include/NuclearWeapons.h
include/RangedWeaponCreator.h
include/RangedWeapons.h
include/ShipCreator.h
include/Ships.h
include/Spacecraft.h
include/SpacecraftCreator.h
include/TankCreator.h
include/Tanks.h
include/VesselWeapon.h
include/VesselWeaponCreator.h
include/WarEngine.h
src/AttackWeaponCreator.cpp
src/ExplosiveWeaponCreator.cpp
src/ExplosiveWeapons.cpp
src/JetCreator.cpp
src/Jets.cpp
src/MeleeWeaponCreator.cpp
src/MeleeWeapons.cpp
src/NuclearWeaponCreator.cpp
src/NuclearWeapons.cpp
src/RangedWeaponCreator.cpp
src/RangedWeapons.cpp
src/ShipCreator.cpp
src/Ships.cpp
src/Spacecraft.cpp
src/SpacecraftCreator.cpp
src/TankCreator.cpp
src/Tanks.cpp
src/VesselWeaponCreator.cpp
src/WarEngine.cpp
include/CountryIterator.h include/Iterator.h src/CountryIterator.cpp
include/Recruits.h include/util/ListSelectionPrompt.h src/ListSelectionPrompt.cpp
include/util/enums.h
include/util/colours.h
)
file(GLOB CPP_FILES src/*.cpp)
list(FILTER CPP_FILES EXCLUDE REGEX src/main.cpp)
add_executable(testExec testSrc/testMain.cpp ${CPP_FILES})
# To add a test, follow the following format.
# add_test(<test_name> <test_executable> <program arguments>)
add_test(testCountry testExec testCountry)
add_test(testRecruits testExec testRecruits)
add_test(testRegistry testExec testRegistry)
add_test(testTransport testExec testTransport)
add_test(testTheatreCountryPeopleCombo testExec testTheatreCountryPeopleCombo)
add_test(testWarEngine testExec testWarEngine)
add_test(testMemento testExec testMemento)
target_include_directories(simulator PUBLIC include)
target_include_directories(testExec PUBLIC include)