Echo Writes Code

CMakeLists.txt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
add_library(crucible-core INTERFACE)

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

add_executable(test-crucible-core)
add_test(NAME test-crucible-core COMMAND test-crucible-core)

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

target_sources(test-crucible-core PRIVATE
  tests/crucible/core/test_result.cpp
  tests/main.cpp)