Added catkin_install_python() for noetic (#424)

This commit is contained in:
matlabbe
2020-06-02 16:57:41 -04:00
parent 2fcb289894
commit 148c46deab
+11
View File
@@ -509,6 +509,16 @@ 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
if(COMMAND catkin_install_python) # ROS Noetic
catkin_install_python(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}
)
else() # prior to ROS Noetic
install(PROGRAMS install(PROGRAMS
scripts/patrol.py scripts/patrol.py
scripts/objects_to_tags.py scripts/objects_to_tags.py
@@ -517,6 +527,7 @@ install(PROGRAMS
scripts/yaml_to_camera_info.py scripts/yaml_to_camera_info.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
) )
endif()
## Mark executables and/or libraries for installation ## Mark executables and/or libraries for installation
install(TARGETS install(TARGETS