forked from clearpathrobotics/camera_info_manager_py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (26 loc) · 1.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.0.2)
project(camera_info_manager_py)
find_package(catkin REQUIRED COMPONENTS rospy sensor_msgs)
include_directories(include ${catkin_INCLUDE_DIRS})
catkin_python_setup()
catkin_package(CATKIN_DEPENDS sensor_msgs)
catkin_install_python(
PROGRAMS
src/camera_info_manager/camera_info_manager.py
src/camera_info_manager/zoom_camera_info_manager.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
# Unit test uses nose, but needs rostest to create a ROS environment.
if (CATKIN_ENABLE_TESTING)
find_package(roscpp REQUIRED)
find_package(camera_info_manager REQUIRED)
add_executable(generate_camera_info
tests/generate_camera_info.cpp
)
# TODO(lucasw) Can the roscpp and camera_info_manager dependencies
# get added to catkin_LIBRARIES somehow?
target_link_libraries(generate_camera_info ${catkin_LIBRARIES}
${roscpp_LIBRARIES} ${camera_info_manager_LIBRARIES})
find_package(rostest REQUIRED)
add_rostest(tests/load_cpp_camera_info.test DEPENDENCIES generate_camera_info)
add_rostest(tests/unit_test.test)
endif(CATKIN_ENABLE_TESTING)