Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic_graph_bridge_msgs
Commits
9888828c
Commit
9888828c
authored
Jun 24, 2020
by
Guilhem Saurel
Browse files
[CMake] update packaging
parent
51d9705f
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9888828c
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
}
)
cmake
@
c333a88d
Compare
429af97f
...
c333a88d
Subproject commit
429af97fe0b858bd73a1747768cc1ac73538614
0
Subproject commit
c333a88decb3e4c0a86947bc6c7f072dc5c5df2
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment