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
if(NOT UNIX) message(STATUS "Skipping crucible-unix: not a Unix-like target") return() endif() include(CrucibleAddLibrary) include(CrucibleAddTest) crucible_add_library(crucible-unix) target_compile_definitions(crucible-unix INTERFACE CRUCIBLE_UNIX) target_include_directories(crucible-unix PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") target_link_libraries(crucible-unix PUBLIC crucible-core crucible-meta) target_sources(crucible-unix PRIVATE source/crucible/unix/backtrace.cpp source/crucible/unix/errors.cpp source/crucible/unix/fs.cpp) crucible_add_test(test-crucible-unix) target_link_libraries(test-crucible-unix PRIVATE crucible-testing crucible-unix) target_sources(test-crucible-unix PRIVATE tests/crucible/unix/test_backtrace.cpp tests/crucible/unix/test_fs.cpp tests/main.cpp)