提交 ab41f607 编写于 作者: V Vincent Rabaud 提交者: GitHub

Merge pull request #48 from bulwahn/hydro-devel

make rostest in CMakeLists optional (ros/rosdistro#3010)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
project(gmapping) project(gmapping)
find_package(catkin REQUIRED nav_msgs openslam_gmapping roscpp rostest tf rosbag_storage nodelet) find_package(catkin REQUIRED nav_msgs nodelet openslam_gmapping roscpp tf rosbag_storage)
find_package(Boost REQUIRED signals) find_package(Boost REQUIRED signals)
...@@ -33,6 +33,7 @@ install(TARGETS slam_gmapping slam_gmapping_replay ...@@ -33,6 +33,7 @@ install(TARGETS slam_gmapping slam_gmapping_replay
) )
if(CATKIN_ENABLE_TESTING) if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
if(TARGET tests) if(TARGET tests)
add_executable(gmapping-rtest EXCLUDE_FROM_ALL test/rtest.cpp) add_executable(gmapping-rtest EXCLUDE_FROM_ALL test/rtest.cpp)
target_link_libraries(gmapping-rtest ${catkin_LIBRARIES} ${GTEST_LIBRARIES}) target_link_libraries(gmapping-rtest ${catkin_LIBRARIES} ${GTEST_LIBRARIES})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册