cmake install commands added

master
Christoph Rösmann 2020-02-20 22:43:35 +01:00
parent 238d8293ac
commit 6c288d33f4
1 changed files with 25 additions and 19 deletions

View File

@ -232,31 +232,37 @@ target_link_libraries(mpc_local_planner
## 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 install(PROGRAMS
# scripts/my_python_script scripts/plot_optimal_control_results.py
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# ) )
## Mark executables and/or libraries for installation ## Mark executables and/or libraries for installation
# install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_node install(TARGETS mpc_local_planner
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} )
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} install(TARGETS test_mpc_optim_node
# ) RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
## Mark cpp header files for installation ## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/ install(DIRECTORY include/${PROJECT_NAME}/
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
# FILES_MATCHING PATTERN "*.h" #FILES_MATCHING PATTERN "*.h"
# PATTERN ".svn" EXCLUDE PATTERN ".svn" EXCLUDE
# ) )
## Mark other files for installation (e.g. launch and bag files, etc.) ## Mark other files for installation (e.g. launch and bag files, etc.)
# install(FILES install(FILES
# # myfile1 mpc_local_planner_plugin.xml
# # myfile2 DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )
# )
install(DIRECTORY
launch cfg scripts
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
PATTERN ".svn" EXCLUDE
)
############# #############
## Testing ## ## Testing ##