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
tsid
Commits
80cd00c3
Commit
80cd00c3
authored
Mar 23, 2020
by
Guilhem Saurel
Browse files
[CMake] keep the python module as a folder for now
ref
https://github.com/stack-of-tasks/tsid/pull/72#issuecomment-597082552
parent
598516f0
Pipeline
#9510
passed with stage
in 16 minutes and 19 seconds
Changes
3
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
bindings/python/CMakeLists.txt
View file @
80cd00c3
...
...
@@ -42,6 +42,14 @@ IF(APPLE)
SET_TARGET_PROPERTIES
(
${
PYWRAP
}
PROPERTIES SUFFIX
".so"
)
ENDIF
(
APPLE
)
SET_TARGET_PROPERTIES
(
${
PYWRAP
}
PROPERTIES
PREFIX
""
OUTPUT_NAME
${
PROJECT_NAME
}
)
SET_TARGET_PROPERTIES
(
${
PYWRAP
}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
PROJECT_NAME
}
)
INSTALL
(
TARGETS
${
PYWRAP
}
EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION
${
PYTHON_SITELIB
}
)
INSTALL
(
TARGETS
${
PYWRAP
}
EXPORT
${
TARGETS_EXPORT_NAME
}
DESTINATION
${
PYTHON_SITELIB
}
/
${
PROJECT_NAME
}
)
SET
(
PYTHON_FILES
__init__.py
)
FOREACH
(
python
${
PYTHON_FILES
}
)
PYTHON_INSTALL_ON_SITE
(
${
PROJECT_NAME
}
${
python
}
)
ENDFOREACH
(
python
)
bindings/python/module.cpp
View file @
80cd00c3
...
...
@@ -35,7 +35,8 @@
namespace
bp
=
boost
::
python
;
using
namespace
tsid
::
python
;
BOOST_PYTHON_MODULE
(
tsid
)
{
BOOST_PYTHON_MODULE
(
libtsid_pywrap
)
{
eigenpy
::
enableEigenPy
();
eigenpy
::
exposeAngleAxis
();
eigenpy
::
exposeQuaternion
();
...
...
bindings/python/tsid/__init__.py
0 → 100644
View file @
80cd00c3
from
.libtsid_pywrap
import
*
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