diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3234bd9b88144230baa4ac384d7bb97408b8c192..da699ec408bbb5680d1d07be82a6c37a692aa201 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 08e10edc08e9b9105fe88b62148438a0557dd1d8..4fed10af760cc74b6a1ead1f9b1163856ffa2e8f 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})