Skip to content
Snippets Groups Projects
Commit 0035a67d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Merge branch 'cmake-export' into 'devel'

Cmake export

See merge request pyrene-dev/talos_data!10
parents 1ecd2c70 63a50213
No related branches found
No related tags found
1 merge request!10Cmake export
Pipeline #7767 passed
...@@ -5,40 +5,46 @@ SET(PROJECT_NAME talos_data) ...@@ -5,40 +5,46 @@ SET(PROJECT_NAME talos_data)
SET(PROJECT_DESCRIPTION "Talos urdf model, srdf model and other data") SET(PROJECT_DESCRIPTION "Talos urdf model, srdf model and other data")
SET(PROJECT_URL "https://gepgitlab.laas.fr/${PROJECT_ORG}/${PROJECT_NAME}") SET(PROJECT_URL "https://gepgitlab.laas.fr/${PROJECT_ORG}/${PROJECT_NAME}")
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
SET(CXX_DISABLE_WERROR True)
SET(CMAKE_CXX_STANDARD 11)
#include(cmake/ros.cmake) #include(cmake/ros.cmake)
INCLUDE(cmake/base.cmake) INCLUDE(cmake/base.cmake)
set(CXX_DISABLE_WERROR True) # Specify the project.
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX) COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS}) PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
find_package(catkin REQUIRED) find_package(catkin REQUIRED COMPONENTS
roscpp)
catkin_package( catkin_package(
# INCLUDE_DIRS include # INCLUDE_DIRS include
# LIBRARIES talos_description # LIBRARIES talos_description
# CATKIN_DEPENDS other_catkin_pkg # CATKIN_DEPENDS roscpp
# DEPENDS system_lib # DEPENDS system_lib
) )
# Find xml_reflection # Find xml_reflection
ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.9") ADD_PROJECT_DEPENDENCY(urdfdom REQUIRED)
ADD_REQUIRED_DEPENDENCY("gazebo >= 7.0.0") ADD_PROJECT_DEPENDENCY(gazebo REQUIRED)
ADD_COMPILE_DEPENDENCY(roscpp) ADD_COMPILE_DEPENDENCY(roscpp)
ADD_LIBRARY(SpringPlugin ADD_LIBRARY(${PROJECT_NAME}
SHARED SHARED
src/SpringPlugin.cc src/SpringPlugin.cc
) )
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PRIVATE ${GAZEBO_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PRIVATE ${catkin_INCLUDE_DIRS})
INSTALL(TARGETS INSTALL(TARGETS
SpringPlugin ${PROJECT_NAME}
EXPORT ${TARGETS_EXPORT_NAME}
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
) )
PKG_CONFIG_USE_DEPENDENCY(SpringPlugin roscpp)
PKG_CONFIG_USE_DEPENDENCY(SpringPlugin gazebo)
FOREACH(dir config gazebo meshes robots urdf srdf launch) FOREACH(dir config gazebo meshes robots urdf srdf launch)
INSTALL(DIRECTORY ${dir}/ INSTALL(DIRECTORY ${dir}/
......
Subproject commit f5e018896d0b1746a03f07ba02a5199e17eaee67 Subproject commit 54ece258eed16da94c7f10979588fcb47b744eb8
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
<buildtool_depend>catkin</buildtool_depend> <buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<exec_depend>talos_description_calibration</exec_depend> <exec_depend>talos_description_calibration</exec_depend>
<exec_depend>talos_description_inertial</exec_depend> <exec_depend>talos_description_inertial</exec_depend>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment