From 8f3d02f5ca5288ddff09017e615f82cc16350df2 Mon Sep 17 00:00:00 2001
From: joanvallve <jvallve@iri.upc.edu>
Date: Tue, 13 Feb 2024 15:34:17 +0100
Subject: [PATCH] renamed cmake function add_gtest

---
 test/CMakeLists.txt       | 8 ++++----
 test/gtest/CMakeLists.txt | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 3234bd9..da699ec 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -4,18 +4,18 @@ add_subdirectory(gtest)
 ############# USE THIS TEST AS AN EXAMPLE ####################
 #                                                            #
 # Create a specific test executable for gtest_example        #
-# laser_scan_utils_add_gtest(gtest_example gtest_example.cpp)#
+# add_gtest(gtest_example gtest_example.cpp)#
 #                                                            #
 ##############################################################
 
 # gtest example
-laser_scan_utils_add_gtest(gtest_example gtest_example.cpp)
+add_gtest(gtest_example gtest_example.cpp)
 
 # gtest icp
 IF(csm_FOUND)
-	laser_scan_utils_add_gtest(gtest_icp gtest_icp.cpp)
+	add_gtest(gtest_icp gtest_icp.cpp)
 ENDIF(csm_FOUND)
 
 IF(falkolib_FOUND)
-	laser_scan_utils_add_gtest(gtest_loop_closure_falko gtest_loop_closure_falko.cpp)
+	add_gtest(gtest_loop_closure_falko gtest_loop_closure_falko.cpp)
 ENDIF(falkolib_FOUND)
\ No newline at end of file
diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt
index 08e10ed..4fed10a 100644
--- a/test/gtest/CMakeLists.txt
+++ b/test/gtest/CMakeLists.txt
@@ -8,7 +8,7 @@ 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} PUBLIC gtest_main ${PLUGIN_NAME})
   add_test(NAME ${target} COMMAND ${target})
-- 
GitLab