diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 03f45caae714c3b208ec8a8cfa21cdd2d3702a5e..bffa80152ff7deb1a3f773f322a9ad8e7746e5a2 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -4,21 +4,21 @@ add_subdirectory(gtest)
 ############# USE THIS TEST AS AN EXAMPLE ####################
 #                                                            #
 # Create a specific test executable for gtest_example        #
-# gnss_utils_add_gtest(gtest_example gtest_example.cpp)      #
+# add_gtest(gtest_example gtest_example.cpp)                 #
 #                                                            #
 ##############################################################
 
 # Navigation test
-gnss_utils_add_gtest(gtest_navigation gtest_navigation.cpp)
+add_gtest(gtest_navigation gtest_navigation.cpp)
 
 # Observations test
-gnss_utils_add_gtest(gtest_observations gtest_observations.cpp)
+add_gtest(gtest_observations gtest_observations.cpp)
 
 # TDCP test
-gnss_utils_add_gtest(gtest_tdcp gtest_tdcp.cpp)
+add_gtest(gtest_tdcp gtest_tdcp.cpp)
 
 # Transformations test
-gnss_utils_add_gtest(gtest_transformations gtest_transformations.cpp)
+add_gtest(gtest_transformations gtest_transformations.cpp)
 
 # ChiSquare test
-gnss_utils_add_gtest(gtest_chisquare gtest_chisquare.cpp)
\ No newline at end of file
+add_gtest(gtest_chisquare gtest_chisquare.cpp)
\ No newline at end of file
diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt
index dd83fcfb0e8149bad51824b970c9abeb5d24f7a8..4fed10af760cc74b6a1ead1f9b1163856ffa2e8f 100644
--- a/test/gtest/CMakeLists.txt
+++ b/test/gtest/CMakeLists.txt
@@ -8,8 +8,8 @@ FetchContent_Declare(
 SET(INSTALL_GTEST OFF) # Disable installation of googletest
 FetchContent_MakeAvailable(googletest)
 
-function(${PROJECT_NAME}_add_gtest target)
+function(add_gtest target)
   add_executable(${target} ${ARGN})
-  target_link_libraries(${target} gtest_main ${PLUGIN_NAME})
+  target_link_libraries(${target} PUBLIC gtest_main ${PLUGIN_NAME})
   add_test(NAME ${target} COMMAND ${target})
 endfunction()