diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 9142108a1..ae6920f6f 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -192,6 +192,9 @@ if(ENABLE_UNIT_TESTING) ${VOLK_GNSSSDR_LIBRARIES} ${GNSS_SDR_TEST_OPTIONAL_LIBS} ) + if(NOT ${GTEST_DIR_LOCAL}) + add_dependencies(run_tests gtest-${gtest_RELEASE}) + endif(NOT ${GTEST_DIR_LOCAL}) endif(ENABLE_UNIT_TESTING) #########################################################