diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 427936f315a..fc85b29a599 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -93,6 +93,9 @@ endif() # System tests ############################################################################### if(SYSTEM_TESTS) + find_package(GTest CONFIG REQUIRED) + include(${PROJECT_SOURCE_DIR}/cmake/testing/GoogleTest.cmake) + add_subdirectory(system/tools/fastdds) add_subdirectory(system/tools/fds) endif() diff --git a/test/system/tools/fds/CMakeLists.txt b/test/system/tools/fds/CMakeLists.txt index a07961e9333..64d17bdbd4f 100644 --- a/test/system/tools/fds/CMakeLists.txt +++ b/test/system/tools/fds/CMakeLists.txt @@ -129,9 +129,6 @@ if(Python3_Interpreter_FOUND) endif() # C++ Unittests -find_package(GTest CONFIG REQUIRED) -include(${PROJECT_SOURCE_DIR}/cmake/testing/GoogleTest.cmake) - set(CLI_MANAGER_TESTS_EXEC CliDiscoveryManagerTests) set(CLI_MANAGER_TESTS_SOURCE