catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Add Android's log library to Catch2's CMake interface
- Commit
ce42deb72fab2be85a862f559984580c24cb76c4- Author
- Martin Hořeňovský ·
- Parents
46a70071a7c0
Changes
CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2fda01..0abdbe82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,10 @@ target_include_directories(Catch2 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> ) +if (ANDROID) + target_link_libraries(Catch2 INTERFACE log) +endif() + # provide a namespaced alias for clients to 'link' against if catch is included as a sub-project add_library(Catch2::Catch2 ALIAS Catch2)