diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e375ca..8d4792f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ project(ROBOTICSLAB_TOOLS LANGUAGES CXX) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_SOURCE_DIR}/cmake/find-modules) -# Find project's hard dependencies +# Hard dependencies find_package(YCM 0.8 REQUIRED) # https://github.com/roboticslab-uc3m/questions-and-answers/issues/65 find_package(YARP 3.0 QUIET) @@ -20,6 +20,9 @@ if(NOT YARP_FOUND) endif() find_package(COLOR_DEBUG REQUIRED) +# Soft dependencies. +find_package(GTestSources 1.6.0 QUIET) + # Retrieve current ROBOTICSLAB_TOOLS version. include(ROBOTICSLAB_TOOLSVersion) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1b27471..ae99f36 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,5 @@ # Testing things ######################################################################################### -find_package(GTestSources 1.6.0 QUIET) - if(NOT GTestSources_FOUND AND (NOT DEFINED ENABLE_tests OR ENABLE_tests)) message(WARNING "GTestSources package not found, disabling tests") endif()