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-process) target_include_directories(crucible-process PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") target_link_libraries(crucible-process PUBLIC crucible-core) if(UNIX) target_link_libraries(crucible-process PUBLIC crucible-unix) endif() if(WIN32) target_link_libraries(crucible-process PUBLIC crucible-windows) endif() target_sources(crucible-process PRIVATE source/crucible/process/backtrace.cpp source/crucible/process/errors.cpp) crucible_add_test(test-crucible-process) target_link_libraries(test-crucible-process PRIVATE crucible-process crucible-testing) target_sources(test-crucible-process PRIVATE tests/crucible/process/test_backtrace.cpp tests/main.cpp)