mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 04:29:49 +08:00
Added catkin_install_python() for noetic (#424)
This commit is contained in:
+19
-8
@@ -509,14 +509,25 @@ ENDIF(costmap_2d_FOUND)
|
|||||||
|
|
||||||
## Mark executable scripts (Python etc.) for installation
|
## Mark executable scripts (Python etc.) for installation
|
||||||
## in contrast to setup.py, you can choose the destination
|
## in contrast to setup.py, you can choose the destination
|
||||||
install(PROGRAMS
|
if(COMMAND catkin_install_python) # ROS Noetic
|
||||||
scripts/patrol.py
|
catkin_install_python(PROGRAMS
|
||||||
scripts/objects_to_tags.py
|
scripts/patrol.py
|
||||||
scripts/point_to_tf.py
|
scripts/objects_to_tags.py
|
||||||
scripts/transform_to_tf.py
|
scripts/point_to_tf.py
|
||||||
scripts/yaml_to_camera_info.py
|
scripts/transform_to_tf.py
|
||||||
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
scripts/yaml_to_camera_info.py
|
||||||
)
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
||||||
|
)
|
||||||
|
else() # prior to ROS Noetic
|
||||||
|
install(PROGRAMS
|
||||||
|
scripts/patrol.py
|
||||||
|
scripts/objects_to_tags.py
|
||||||
|
scripts/point_to_tf.py
|
||||||
|
scripts/transform_to_tf.py
|
||||||
|
scripts/yaml_to_camera_info.py
|
||||||
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
## Mark executables and/or libraries for installation
|
## Mark executables and/or libraries for installation
|
||||||
install(TARGETS
|
install(TARGETS
|
||||||
|
|||||||
Reference in New Issue
Block a user