mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
95 lines
2.4 KiB
CMake
95 lines
2.4 KiB
CMake
cmake_minimum_required(VERSION 2.8.3)
|
|
project(clover_blocks)
|
|
|
|
find_package(catkin REQUIRED COMPONENTS message_generation)
|
|
|
|
add_message_files(
|
|
FILES
|
|
Prompt.msg
|
|
)
|
|
|
|
add_service_files(
|
|
FILES
|
|
Run.srv
|
|
Load.srv
|
|
Store.srv
|
|
)
|
|
|
|
generate_messages(
|
|
DEPENDENCIES
|
|
# std_msgs # Or other packages containing msgs
|
|
)
|
|
|
|
catkin_package(
|
|
# INCLUDE_DIRS include
|
|
# LIBRARIES roslaunch_editor
|
|
CATKIN_DEPENDS message_runtime
|
|
# DEPENDS system_lib
|
|
)
|
|
|
|
#############
|
|
## Install ##
|
|
#############
|
|
|
|
# all install targets should use catkin DESTINATION variables
|
|
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
|
|
|
|
## Mark executable scripts (Python etc.) for installation
|
|
## in contrast to setup.py, you can choose the destination
|
|
# install(PROGRAMS
|
|
# scripts/my_python_script
|
|
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
# )
|
|
|
|
## Mark executables for installation
|
|
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
|
|
# install(TARGETS ${PROJECT_NAME}_node
|
|
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
# )
|
|
|
|
## Mark libraries for installation
|
|
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
|
|
# install(TARGETS ${PROJECT_NAME}
|
|
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
|
|
# )
|
|
|
|
## Mark cpp header files for installation
|
|
# install(DIRECTORY include/${PROJECT_NAME}/
|
|
# DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
|
|
# FILES_MATCHING PATTERN "*.h"
|
|
# PATTERN ".svn" EXCLUDE
|
|
# )
|
|
|
|
## Mark other files for installation (e.g. launch and bag files, etc.)
|
|
# install(FILES
|
|
# # myfile1
|
|
# # myfile2
|
|
# DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
# )
|
|
|
|
catkin_install_python(PROGRAMS src/clover_blocks
|
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
)
|
|
|
|
# TODO: store programs in home directory?
|
|
install(DIRECTORY programs
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
)
|
|
|
|
install(DIRECTORY www DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
|
|
|
|
#############
|
|
## Testing ##
|
|
#############
|
|
|
|
## Add gtest based cpp test target and link libraries
|
|
# catkin_add_gtest(${PROJECT_NAME}-test test/test_roslaunch_editor.cpp)
|
|
# if(TARGET ${PROJECT_NAME}-test)
|
|
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
|
|
# endif()
|
|
|
|
## Add folders to be run by python nosetests
|
|
# catkin_add_nosetests(test)
|