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
sot-dynamic-pinocchio
Commits
1a7ef61b
Commit
1a7ef61b
authored
Dec 21, 2016
by
Rohan Budhiraja
Browse files
[cmake][c++] Change names of installed plugins to differentiate from sot-dynamic
parent
aa38aedd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
1a7ef61b
...
...
@@ -31,33 +31,34 @@ SET(integrator-force-rk4_plugins_dependencies integrator-force)
SET
(
integrator-force-exact_plugins_dependencies integrator-force
)
FOREACH
(
lib
${
plugins
}
)
ADD_LIBRARY
(
${
lib
}
SHARED
${
lib
}
.cpp
)
SET_TARGET_PROPERTIES
(
${
lib
}
PROPERTIES
SET
(
libname dp-
${
lib
}
)
ADD_LIBRARY
(
${
libname
}
SHARED
${
lib
}
.cpp
)
SET_TARGET_PROPERTIES
(
${
lib
name
}
PROPERTIES
PREFIX
""
SOVERSION
${
PROJECT_VERSION
}
)
IF
(
${
lib
}
_plugins_dependencies
)
ADD_DEPENDENCIES
(
${
lib
}
"
${${
lib
}
_plugins_dependencies
}
"
)
TARGET_LINK_LIBRARIES
(
${
lib
}
"
${${
lib
}
_plugins_dependencies
}
"
)
ADD_DEPENDENCIES
(
${
lib
name
}
"dp-
${${
lib
}
_plugins_dependencies
}
"
)
TARGET_LINK_LIBRARIES
(
${
lib
name
}
"dp-
${${
lib
}
_plugins_dependencies
}
"
)
ENDIF
(
${
lib
}
_plugins_dependencies
)
TARGET_LINK_LIBRARIES
(
${
lib
}
${
Boost_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
${
lib
name
}
${
Boost_LIBRARIES
}
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
pinocchio
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
eigenpy
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
sot-core
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
dynamic-graph
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
name
}
pinocchio
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
name
}
eigenpy
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
name
}
sot-core
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
name
}
dynamic-graph
)
INSTALL
(
TARGETS
${
lib
}
DESTINATION
${
DYNAMIC_GRAPH_PLUGINDIR
}
)
INSTALL
(
TARGETS
${
lib
name
}
DESTINATION
${
DYNAMIC_GRAPH_PLUGINDIR
}
)
# build python submodule
STRING
(
REPLACE - _ PYTHON_LIBRARY_NAME
${
lib
}
)
SOT_DYNAMIC_PYTHON_MODULE
(
"sot/dynamics/
${
PYTHON_LIBRARY_NAME
}
"
${
lib
}
SOT_DYNAMIC_PYTHON_MODULE
(
"sot/dynamics
_pinocchio
/
${
PYTHON_LIBRARY_NAME
}
"
${
lib
name
}
sot-dynamic-pinocchio-
${
PYTHON_LIBRARY_NAME
}
-wrap
)
UNSET
(
{libname}
)
ENDFOREACH
(
lib
)
# Main Library
...
...
@@ -71,7 +72,7 @@ PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} dynamic-graph)
TARGET_LINK_LIBRARIES
(
${
LIBRARY_NAME
}
${
Boost_LIBRARIES
}
)
INSTALL
(
TARGETS
${
LIBRARY_NAME
}
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
TARGET_LINK_LIBRARIES
(
dynamic
${
LIBRARY_NAME
}
)
TARGET_LINK_LIBRARIES
(
dp-
dynamic
${
LIBRARY_NAME
}
)
# Install empty __init__.py files in intermediate directories.
INSTALL
(
FILES
...
...
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