-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
21 lines (16 loc) · 1.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.19)
project(Labo4_RIver)
set(CMAKE_CXX_STANDARD 14)
set(PROJECT_FILES Controller.cpp Controller.hpp persons/Person.cpp
persons/Person.hpp persons/Cop.cpp persons/Cop.hpp persons/Parent.cpp
persons/Parent.hpp persons/Mother.cpp persons/Mother.hpp persons/Father.cpp
persons/Father.hpp persons/Son.cpp persons/Son.hpp persons/Daughter.cpp
persons/Daughter.hpp persons/Robber.cpp persons/Robber.hpp Container/Container.cpp
Container/Container.hpp Container/Boat.cpp Container/Boat.hpp
Container/Bank.hpp Container/Bank.cpp persons/Child.cpp persons/Child.hpp)
add_executable(Labo4_RIver main.cpp ${PROJECT_FILES} ErrorManager.hpp)
add_library(Catch2 tests/catch.hpp)
set_target_properties(Catch2 PROPERTIES LINKER_LANGUAGE CXX)
add_executable(Test ${PROJECT_FILES} tests/SonTest.cpp
tests/DaughterTest.cpp tests/RobberTest.cpp tests/FatherTest.cpp tests/MotherTest.cpp tests/test.cpp tests/BoatTest.cpp tests/CopTest.cpp)
target_link_libraries(Test Catch2)