-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (23 loc) · 1.38 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
cmake_minimum_required(VERSION 3.19)
project(POA_labo4_Buffy)
set(CMAKE_CXX_STANDARD 14)
set(SOURCE src/Field.cpp src/Field.hpp
src/humanoid/Humanoid.cpp src/humanoid/Humanoid.hpp src/humanoid/Human.cpp
src/humanoid/Human.hpp src/humanoid/Vampire.cpp src/humanoid/Vampire.hpp
src/action/Action.cpp src/humanoid/Hunter.hpp src/humanoid/Hunter.cpp
src/action/Action.hpp src/action/Kill.cpp src/action/Kill.hpp
src/action/Vampirize.cpp src/action/Vampirize.hpp src/action/Move.cpp
src/action/Move.hpp src/Vector.hpp src/Vector.cpp src/Controller.hpp src/Controller.cpp
src/ui/Displayer.hpp src/ui/console/ConsoleDisplayer.hpp
src/ui/console/ConsoleDisplayer.cpp src/ui/console/Grid.cpp
src/ui/console/Grid.hpp src/ui/console/Displayable.hpp
src/utils/RandomGenerator.hpp src/utils/RandomGenerator.cpp
src/ui/console/ColoredConsoleDisplayer.cpp
src/ui/console/ColoredConsoleDisplayer.hpp
src/FieldEventListener.hpp src/StatsCalculator.cpp src/StatsCalculator.hpp)
add_executable(POA_labo4_Buffy src/main.cpp ${SOURCE})
add_library(Catch2 tests/catch.hpp)
set_target_properties(Catch2 PROPERTIES LINKER_LANGUAGE CXX)
add_executable(Test tests/catch.hpp tests/test.cpp tests/GridTest.cpp
tests/DisplayerConsoleTest.cpp ${SOURCE} tests/StatisticCalculatorTest.cpp)
target_link_libraries(Test Catch2)