Commit 9888828c authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] update packaging

parent 51d9705f
cmake_minimum_required(VERSION 2.8.3)
project(dynamic_graph_bridge_msgs)
cmake_minimum_required(VERSION 3.1)
## LAAS cmake submodule part
set(PROJECT_DESCRIPTION "Dynamic graph bridge msgs ")
set(PROJECT_ORG stack-of-tasks)
set(PROJECT_NAME dynamic_graph_bridge_msgs)
set(PROJECT_URL "")
set(PROJECT_DESCRIPTION "Dynamic graph bridge msgs ")
set(PROJECT_URL "https://github.com/${PROJECT_ORG}/${PROJECT_NAME}")
set(CXX_DISABLE_WERROR False)
set(CUSTOM_HEADER_DIR dynamic_graph_bridge_msgs)
include(cmake/base.cmake)
include(cmake/ros.cmake)
include(cmake/GNUInstallDirs.cmake)
set(PROJECT_USE_CMAKE_EXPORT TRUE)
include(cmake/base.cmake)
SETUP_PROJECT()
#List to make rest of code more readable
set( MESSAGE_DEPENDENCIES std_msgs )
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
project(${PROJECT_NAME} ${PROJECT_ARGS})
#Declare build dependencies
find_package(catkin REQUIRED
COMPONENTS
message_generation
${MESSAGE_DEPENDENCIES} )
# Declare build dependencies
find_package(catkin REQUIRED COMPONENTS message_generation std_msgs)
#Add message files
# Add message files
add_message_files(DIRECTORY msg FILES Matrix.msg Vector.msg)
#Add service files
add_service_files(DIRECTORY srv
FILES
RunCommand.srv
RunPythonFile.srv)
# Add service files
add_service_files(DIRECTORY srv FILES RunCommand.srv RunPythonFile.srv)
#And now generate the messages
# And now generate the messages
generate_messages(DEPENDENCIES ${MESSAGE_DEPENDENCIES})
# Generate catkin/pkg-config import information
catkin_package( CATKIN_DEPENDS message_runtime ${MESSAGE_DEPENDENCIES} )
SETUP_PROJECT_FINALIZE()
\ No newline at end of file
add_library(${PROJECT_NAME} INTERFACE)
install(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
install(FILES package.xml DESTINATION share/${PROJECT_NAME})
Subproject commit 429af97fe0b858bd73a1747768cc1ac735386140
Subproject commit c333a88decb3e4c0a86947bc6c7f072dc5c5df20
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment