Merge pull request #4 from bulwahn/hydro-devel

check for CATKIN_ENABLE_TESTING
This commit is contained in:
Vincent Rabaud 2013-10-13 23:58:36 -07:00
commit bb9717c572
2 changed files with 5 additions and 3 deletions

View File

@ -20,8 +20,10 @@ include_directories(include ${catkin_INCLUDE_DIRS})
add_library(laser_geometry src/laser_geometry.cpp) add_library(laser_geometry src/laser_geometry.cpp)
target_link_libraries(laser_geometry ${Boost_LIBRARIES} ${tf_LIBRARIES}) target_link_libraries(laser_geometry ${Boost_LIBRARIES} ${tf_LIBRARIES})
catkin_add_gtest(projection_test test/projection_test.cpp) if(CATKIN_ENABLE_TESTING)
target_link_libraries(projection_test laser_geometry) catkin_add_gtest(projection_test test/projection_test.cpp)
target_link_libraries(projection_test laser_geometry)
endif()
install(TARGETS laser_geometry install(TARGETS laser_geometry
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}

View File

@ -15,7 +15,7 @@
<url>http://ros.org/wiki/laser_geometry</url> <url>http://ros.org/wiki/laser_geometry</url>
<buildtool_depend>catkin</buildtool_depend> <buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
<build_depend>sensor_msgs</build_depend> <build_depend>sensor_msgs</build_depend>
<build_depend>roscpp</build_depend> <build_depend>roscpp</build_depend>