Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dynamic-pinocchio
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
Stack Of Tasks
sot-dynamic-pinocchio
Commits
033190e5
Commit
033190e5
authored
6 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] remove custom_cmake/python.cmake, fix #33
parent
f5a401eb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+0
-1
0 additions, 1 deletion
CMakeLists.txt
custom_cmake/python.cmake
+0
-87
0 additions, 87 deletions
custom_cmake/python.cmake
src/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/CMakeLists.txt
with
1 addition
and
89 deletions
CMakeLists.txt
+
0
−
1
View file @
033190e5
...
...
@@ -20,7 +20,6 @@ INCLUDE(cmake/boost.cmake)
INCLUDE
(
cmake/eigen.cmake
)
INCLUDE
(
cmake/lapack.cmake
)
INCLUDE
(
cmake/cpack.cmake
)
INCLUDE
(
custom_cmake/python.cmake
)
INCLUDE
(
cmake/python.cmake
)
SET
(
PROJECT_NAME sot-dynamic-pinocchio
)
...
...
This diff is collapsed.
Click to expand it.
custom_cmake/python.cmake
deleted
100644 → 0
+
0
−
87
View file @
f5a401eb
# Copyright (C) 2008-2016 LAAS-CNRS, JRL AIST-CNRS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# SOT_DYNAMIC_PYTHON_MODULE SUBMODULENAME LIBRARYNAME TARGETNAME
# ---------------------------
#
# Add a python submodule to dynamic_graph
#
# SUBMODULENAME : the name of the submodule (can be foo/bar),
#
# LIBRARYNAME : library to link the submodule with.
#
# TARGETNAME : name of the target: should be different for several
# calls to the macro.
#
# NOTICE : Before calling this macro, set variable NEW_ENTITY_CLASS as
# the list of new Entity types that you want to be bound.
# Entity class name should match the name referencing the type
# in the factory.
#
MACRO
(
SOT_DYNAMIC_PYTHON_MODULE SUBMODULENAME LIBRARYNAME TARGETNAME
)
FINDPYTHON
()
SET
(
PYTHON_MODULE
${
TARGETNAME
}
)
ADD_LIBRARY
(
${
PYTHON_MODULE
}
MODULE
${
PROJECT_SOURCE_DIR
}
/src/python-module-py.cpp
)
#${PROJECT_SOURCE_DIR}/src/sot-dynamic-py.cpp)
FILE
(
MAKE_DIRECTORY
${
PROJECT_BINARY_DIR
}
/src/dynamic_graph/
${
SUBMODULENAME
}
)
SET_TARGET_PROPERTIES
(
${
PYTHON_MODULE
}
PROPERTIES PREFIX
""
OUTPUT_NAME dynamic_graph/
${
SUBMODULENAME
}
/wrap
)
TARGET_LINK_LIBRARIES
(
${
PYTHON_MODULE
}
"-Wl,--no-as-needed"
)
TARGET_LINK_LIBRARIES
(
${
PYTHON_MODULE
}
${
LIBRARYNAME
}
${
PYTHON_LIBRARY
}
)
TARGET_LINK_LIBRARIES
(
${
PYTHON_MODULE
}
${
Boost_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
${
PYTHON_MODULE
}
pinocchio
)
TARGET_LINK_LIBRARIES
(
${
PYTHON_MODULE
}
eigenpy
)
PKG_CONFIG_USE_DEPENDENCY
(
${
PYTHON_MODULE
}
dynamic-graph
)
PKG_CONFIG_USE_DEPENDENCY
(
${
PYTHON_MODULE
}
pinocchio
)
PKG_CONFIG_USE_DEPENDENCY
(
${
PYTHON_MODULE
}
eigenpy
)
INCLUDE_DIRECTORIES
(
${
PYTHON_INCLUDE_PATH
}
)
#
# Installation
#
SET
(
PYTHON_INSTALL_DIR
${
PYTHON_SITELIB
}
/dynamic_graph/
${
SUBMODULENAME
}
)
INSTALL
(
TARGETS
${
PYTHON_MODULE
}
DESTINATION
${
PYTHON_INSTALL_DIR
}
)
SET
(
ENTITY_CLASS_LIST
""
)
FOREACH
(
ENTITY
${
NEW_ENTITY_CLASS
}
)
SET
(
ENTITY_CLASS_LIST
"
${
ENTITY_CLASS_LIST
}${
ENTITY
}
('')
\n
"
)
ENDFOREACH
(
ENTITY
${
NEW_ENTITY_CLASS
}
)
CONFIGURE_FILE
(
${
PROJECT_SOURCE_DIR
}
/cmake/dynamic_graph/submodule/__init__.py.cmake
${
PROJECT_BINARY_DIR
}
/src/dynamic_graph/
${
SUBMODULENAME
}
/__init__.py
)
INSTALL
(
FILES
${
PROJECT_BINARY_DIR
}
/src/dynamic_graph/
${
SUBMODULENAME
}
/__init__.py
DESTINATION
${
PYTHON_INSTALL_DIR
}
)
ENDMACRO
(
DYNAMIC_GRAPH_PYTHON_MODULE SUBMODULENAME
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
1
View file @
033190e5
...
...
@@ -52,7 +52,7 @@ FOREACH(lib ${plugins})
# build python submodule
STRING
(
REPLACE - _ PYTHON_LIBRARY_NAME
${
lib
}
)
SOT_
DYNAMIC_PYTHON_MODULE
(
"sot/dynamics_pinocchio/
${
PYTHON_LIBRARY_NAME
}
"
DYNAMIC_
GRAPH_
PYTHON_MODULE
(
"sot/dynamics_pinocchio/
${
PYTHON_LIBRARY_NAME
}
"
${
libname
}
sot-dynamic-pinocchio-
${
PYTHON_LIBRARY_NAME
}
-wrap
)
...
...
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