From b2a872d7865ccd989ee687353020e2e707e5c6ce Mon Sep 17 00:00:00 2001 From: Djordje Nedic Date: Thu, 30 Nov 2023 00:00:41 +0100 Subject: [PATCH] fix(tests): Add enable_testing() call when tests are enabled This fixes VSCode and other tools not detecting tests. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7402aa..9c5024c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,5 +25,6 @@ endif() # Only build tests if we're actually working on the library, # not when the library is being used in a project if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) + enable_testing() add_subdirectory(tests) endif()