diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4a803a537..43fcfd4ae 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -53,4 +53,9 @@ if (NOT EXTERNAL_CATCH2) catch_discover_tests( unittests WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} ) +else() + add_test(NAME unittests + COMMAND unittests + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} + ) endif()