Skip to content

Commit

Permalink
make rostest in CMakeLists optional (ros/rosdistro#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
bulwahn committed Feb 27, 2014
1 parent e43e3e0 commit 803b81a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion map_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ find_package(catkin REQUIRED
roscpp
tf
nav_msgs
rostest
)

find_package(Boost REQUIRED COMPONENTS system)
Expand Down Expand Up @@ -55,6 +54,7 @@ endfunction()

## Tests
if(CATKIN_ENABLE_TESTING)
find_package(rostest)
copy_test_data( FILES
test/testmap.bmp
test/testmap.png )
Expand Down
3 changes: 2 additions & 1 deletion robot_pose_ekf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ link_directories(${BFL_LIBRARY_DIRS})
find_package(catkin REQUIRED
COMPONENTS
roscpp
rostest
tf
nav_msgs
std_msgs
Expand Down Expand Up @@ -79,6 +78,8 @@ include(CMakeDetermineSystem)
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
if(CATKIN_ENABLE_TESTING)

find_package(rostest)

catkin_download_test_data(download_data_ekf_test2_indexed.bag http://download.ros.org/data/robot_pose_ekf/ekf_test2_indexed.bag FILENAME test/ekf_test2.bag MD5 71addef0ed900e05b301e0b4fdca99e2)
add_executable(test_robot_pose_ekf test/test_robot_pose_ekf.cpp)
target_link_libraries(test_robot_pose_ekf
Expand Down

0 comments on commit 803b81a

Please sign in to comment.