Echo Writes Code

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
include(CrucibleAddLibrary)
include(CrucibleAddTest)

crucible_add_library(crucible-core)

target_include_directories(crucible-core PUBLIC
  "${CMAKE_CURRENT_SOURCE_DIR}/include")

target_sources(crucible-core PRIVATE
  source/crucible/core/errors.cpp
  source/crucible/core/format.cpp
  source/crucible/core/none.cpp)

crucible_add_test(test-crucible-core)

target_link_libraries(test-crucible-core PRIVATE
  crucible-core
  crucible-testing)

target_sources(test-crucible-core PRIVATE
  tests/crucible/core/test_arrays.cpp
  tests/crucible/core/test_either.cpp
  tests/crucible/core/test_fallible.cpp
  tests/crucible/core/test_format.cpp
  tests/crucible/core/test_resource_warden.cpp
  tests/main.cpp)