2025-09-23 17:17:29 +02:00
|
|
|
include(CatchMiscFunctions)
|
|
|
|
|
|
|
|
|
|
add_executable(AssertionsFastPath
|
|
|
|
|
runtime_assertion_benches.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_executable(AssertionsSlowPath
|
|
|
|
|
runtime_assertion_benches.cpp
|
|
|
|
|
assertion_listener.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2026-05-07 13:42:01 +02:00
|
|
|
add_executable(EmptyExecutable
|
|
|
|
|
only_include.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2025-09-23 17:17:29 +02:00
|
|
|
target_link_libraries(AssertionsFastPath PRIVATE Catch2::Catch2WithMain)
|
|
|
|
|
target_link_libraries(AssertionsSlowPath PRIVATE Catch2::Catch2WithMain)
|
2026-05-07 13:42:01 +02:00
|
|
|
target_link_libraries(EmptyExecutable PRIVATE Catch2::Catch2WithMain)
|
2025-09-23 17:17:29 +02:00
|
|
|
|
2026-05-07 13:42:01 +02:00
|
|
|
list(APPEND CATCH_TEST_TARGETS AssertionsFastPath AssertionsSlowPath EmptyExecutable)
|
2025-09-23 17:17:29 +02:00
|
|
|
set(CATCH_TEST_TARGETS ${CATCH_TEST_TARGETS} PARENT_SCOPE)
|