11 lines
279 B
CMake
11 lines
279 B
CMake
find_package(Catch2 3 REQUIRED CONFIG)
|
|
include(Catch)
|
|
|
|
function(cargoxx_add_test name)
|
|
add_executable(${name} ${name}.cpp)
|
|
target_link_libraries(${name} PRIVATE cargoxx Catch2::Catch2WithMain)
|
|
catch_discover_tests(${name})
|
|
endfunction()
|
|
|
|
cargoxx_add_test(util_error)
|