From 6eda263ba03770df19e8a3133cd575f76b8b119b Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Sun, 26 Apr 2015 00:33:53 +0200 Subject: [PATCH] properly link to gtest --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af21e13..ae36340 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,8 +74,8 @@ if(CATKIN_ENABLE_TESTING) target_link_libraries(dummy_scan_producer ${catkin_LIBRARIES} ${Boost_LIBRARIES}) add_dependencies(dummy_scan_producer ${PROJECT_NAME}_gencpp) - add_executable(test_assembler EXCLUDE_FROM_ALL test/test_assembler.cpp) - target_link_libraries(test_assembler ${catkin_LIBRARIES} ${Boost_LIBRARIES}) + add_executable(test_assembler test/test_assembler.cpp) + target_link_libraries(test_assembler ${catkin_LIBRARIES} ${Boost_LIBRARIES} gtest) add_dependencies(test_assembler ${PROJECT_NAME}_gencpp) add_rostest(test/test_laser_assembler.launch)