cmake: Allow Catch test discovery (#1997)

Allows individual unit-tests to be discovered, tested, and debugged by IDEs without having to run _all_ of the unit-tests just to debug one specific test.
This commit is contained in:
Wunk
2026-04-05 23:01:05 +02:00
committed by GitHub
parent ba6f8cb744
commit 60f331b43b
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ if (ENABLE_TESTS)
add_subdirectory(catch2)
endif()
target_link_libraries(catch2 INTERFACE Catch2::Catch2WithMain)
include(Catch)
endif()
# Crypto++