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
Guilhem Saurel
ndcurves
Commits
e360fb3a
Unverified
Commit
e360fb3a
authored
Feb 11, 2020
by
Fernbach Pierre
Committed by
GitHub
Feb 11, 2020
Browse files
Merge pull request #31 from pFernbach/topic/install_pydef
install header python/python_definition
parents
7884ae26
129fc7e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
python/curves/CMakeLists.txt
View file @
e360fb3a
...
...
@@ -8,6 +8,15 @@ SET(${PY_NAME}_BINDINGS_SOURCES
namespace.h
)
SET
(
${
PROJECT_NAME
}
_PYTHON_HEADERS
python_definitions.h
)
INSTALL
(
FILES
${${
PROJECT_NAME
}
_PYTHON_HEADERS
}
DESTINATION include/
${
PROJECT_NAME
}
/python
)
ADD_LIBRARY
(
${
PY_NAME
}
SHARED
${${
PY_NAME
}
_BINDINGS_SOURCES
}
)
SET_TARGET_PROPERTIES
(
${
PY_NAME
}
PROPERTIES PREFIX
""
)
TARGET_COMPILE_OPTIONS
(
${
PY_NAME
}
PRIVATE
"-Wno-conversion"
)
...
...
python/curves/python_definitions.h
View file @
e360fb3a
#include
"curves/fwd.h"
#include
"curves/bezier_curve.h"
#include
"curves/polynomial.h"
#include
"curves/linear_variable.h"
#include
"curves/quadratic_variable.h"
...
...
@@ -25,8 +26,8 @@ typedef std::vector<waypoint_t> t_waypoint_t;
typedef
Eigen
::
Matrix
<
real
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>
point_listX_t
;
typedef
Eigen
::
Matrix
<
real
,
3
,
Eigen
::
Dynamic
>
point_list3_t
;
typedef
Eigen
::
Matrix
<
real
,
6
,
Eigen
::
Dynamic
>
point_list6_t
;
typedef
polynomial_t
::
coeff_t
coeff_t
;
typedef
curves
::
Bern
<
double
>
bernstein_t
;
template
<
typename
PointList
,
typename
T_Point
>
...
...
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