Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic_graph_bridge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
dynamic_graph_bridge
Commits
d46da1d6
Commit
d46da1d6
authored
4 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] drop pkg-config
parent
99cb9bc6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+7
-13
7 additions, 13 deletions
CMakeLists.txt
src/CMakeLists.txt
+8
-8
8 additions, 8 deletions
src/CMakeLists.txt
with
15 additions
and
21 deletions
CMakeLists.txt
+
7
−
13
View file @
d46da1d6
...
...
@@ -10,7 +10,6 @@ SET(PROJECT_ORG stack-of-tasks)
SET
(
PROJECT_NAME dynamic_graph_bridge
)
SET
(
PROJECT_DESCRIPTION
"Dynamic graph bridge library"
)
SET
(
PROJECT_URL
"https://github.com/
${
PROJECT_ORG
}
/
${
PROJECT_NAME
}
"
)
SET
(
PROJECT_SUFFIX
"-v3"
)
# Project options
OPTION
(
BUILD_PYTHON_INTERFACE
"Build the python bindings"
ON
)
...
...
@@ -36,29 +35,26 @@ PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
SET
(
CATKIN_REQUIRED_COMPONENTS roscpp std_msgs message_generation std_srvs geometry_msgs sensor_msgs tf2_ros
realtime_tools
)
ADD_PROJECT_DEPENDENCY
(
Boost REQUIRED COMPONENTS program_options
)
ADD_PROJECT_DEPENDENCY
(
dynamic_graph_bridge_msgs 0.3.0 REQUIRED
)
IF
(
BUILD_PYTHON_INTERFACE
)
FINDPYTHON
()
SEARCH_FOR_BOOST_PYTHON
()
STRING
(
REGEX REPLACE
"-"
"_"
PY_NAME
${
PROJECT_NAME
}
)
ADD_PROJECT_DEPENDENCY
(
dynamic-graph-python 4.0.0 REQUIRED
PKG_CONFIG_REQUIRES dynamic-graph-python
)
ADD_PROJECT_DEPENDENCY
(
dynamic-graph-python 4.0.0 REQUIRED
)
SET
(
CATKIN_REQUIRED_COMPONENTS
${
CATKIN_REQUIRED_COMPONENTS
}
rospy
)
ENDIF
(
BUILD_PYTHON_INTERFACE
)
find_package
(
catkin REQUIRED COMPONENTS
${
CATKIN_REQUIRED_COMPONENTS
}
)
ADD_PROJECT_DEPENDENCY
(
sot-core REQUIRED PKG_CONFIG_REQUIRES sot-core
)
add_required_dependency
(
dynamic_graph_bridge_msgs
)
ADD_PROJECT_DEPENDENCY
(
sot-core REQUIRED
)
# Main Library
set
(
${
PROJECT_NAME
}
_HEADERS
include/
dynamic_graph_bridge
/ros_init.hh
include/
dynamic_graph_bridge
/sot_loader.hh
include/
dynamic_graph_bridge
/sot_loader_basic.hh
include/
dynamic_graph_bridge
/ros_interpreter.hh
include/
${
PROJECT_NAME
}
/ros_init.hh
include/
${
PROJECT_NAME
}
/sot_loader.hh
include/
${
PROJECT_NAME
}
/sot_loader_basic.hh
include/
${
PROJECT_NAME
}
/ros_interpreter.hh
src/converter.hh
src/sot_to_ros.hh
)
...
...
@@ -75,7 +71,6 @@ TARGET_INCLUDE_DIRECTORIES(ros_bridge SYSTEM PUBLIC ${catkin_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES
(
ros_bridge PUBLIC $<INSTALL_INTERFACE:include>
)
TARGET_LINK_LIBRARIES
(
ros_bridge
${
catkin_LIBRARIES
}
sot-core::sot-core pinocchio::pinocchio
)
pkg_config_use_dependency
(
ros_bridge dynamic_graph_bridge_msgs
)
IF
(
SUFFIX_SO_VERSION
)
SET_TARGET_PROPERTIES
(
ros_bridge PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
...
...
@@ -98,4 +93,3 @@ install(PROGRAMS
# Install package information
install
(
FILES manifest.xml package.xml DESTINATION share/
${
PROJECT_NAME
}
)
PKG_CONFIG_APPEND_LIBS
(
ros_bridge sot_loader
)
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
8
−
8
View file @
d46da1d6
...
...
@@ -14,8 +14,8 @@ FOREACH(plugin ${plugins})
SET_TARGET_PROPERTIES
(
${
LIBRARY_NAME
}
PROPERTIES SOVERSION
${
PROJECT_VERSION
}
)
ENDIF
(
SUFFIX_SO_VERSION
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${${
LIBRARY_NAME
}
_deps
}
${
catkin_LIBRARIES
}
ros_bridge
)
PKG_CONFIG_USE_DEPENDENCY
(
${
LIBRARY_NAME
}
dynamic_graph_bridge_msgs
)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${${
LIBRARY_NAME
}
_deps
}
${
catkin_LIBRARIES
}
ros_bridge
dynamic_graph_bridge_msgs::
dynamic_graph_bridge_msgs
)
IF
(
NOT INSTALL_PYTHON_INTERFACE_ONLY
)
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
...
...
@@ -46,8 +46,8 @@ IF(BUILD_PYTHON_INTERFACE)
# ros_interperter library.
add_library
(
ros_interpreter ros_interpreter.cpp
)
TARGET_LINK_LIBRARIES
(
ros_interpreter ros_bridge
${
catkin_LIBRARIES
}
dynamic-graph-python::dynamic-graph-python
)
PKG_CONFIG_USE_DEPENDENCY
(
ros_interpreter
dynamic_graph_bridge_msgs
)
dynamic-graph-python::dynamic-graph-python
dynamic_graph_bridge_msgs::
dynamic_graph_bridge_msgs
)
install
(
TARGETS ros_interpreter
EXPORT
${
TARGETS_EXPORT_NAME
}
...
...
@@ -56,13 +56,13 @@ ENDIF(BUILD_PYTHON_INTERFACE)
# Stand alone embedded intepreter with a robot controller.
add_executable
(
geometric_simu geometric_simu.cpp sot_loader.cpp sot_loader_basic.cpp
)
target_link_libraries
(
geometric_simu Boost::program_options
${
CMAKE_DL_LIBS
}
${
catkin_LIBRARIES
}
ros_bridge
)
pkg_config_use_dependency
(
geometric_simu
dynamic_graph_bridge_msgs
)
target_link_libraries
(
geometric_simu Boost::program_options
${
CMAKE_DL_LIBS
}
${
catkin_LIBRARIES
}
ros_bridge
dynamic_graph_bridge_msgs::
dynamic_graph_bridge_msgs
)
install
(
TARGETS geometric_simu
DESTINATION lib/
${
PROJECT_NAME
}
)
# Sot loader library
add_library
(
sot_loader sot_loader.cpp sot_loader_basic.cpp
)
target_link_libraries
(
sot_loader Boost::program_options
${
catkin_LIBRARIES
}
ros_bridge
)
pkg_config_use_dependency
(
sot_loader
dynamic_graph_bridge_msgs
)
target_link_libraries
(
sot_loader Boost::program_options
${
catkin_LIBRARIES
}
ros_bridge
dynamic_graph_bridge_msgs::
dynamic_graph_bridge_msgs
)
install
(
TARGETS sot_loader EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION lib
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment