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
include(CrucibleAddLibrary) include(CrucibleAddTest) crucible_add_library(crucible-testing) target_include_directories(crucible-testing PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") target_link_libraries(crucible-testing PUBLIC crucible-core crucible-process) target_sources(crucible-testing PRIVATE source/crucible/testing/abstract_reporter.cpp source/crucible/testing/cli.cpp source/crucible/testing/console_reporter.cpp source/crucible/testing/fixture.cpp source/crucible/testing/outcome.cpp source/crucible/testing/reporter.cpp source/crucible/testing/scenario.cpp source/crucible/testing/suite.cpp) crucible_add_test(test-crucible-testing) target_link_libraries(test-crucible-testing PRIVATE crucible-core crucible-testing) target_sources(test-crucible-testing PRIVATE tests/crucible/testing/test_expect.cpp tests/crucible/testing/test_fixture.cpp tests/crucible/testing/test_outcome.cpp tests/crucible/testing/test_scenario.cpp tests/main.cpp)