File tree Expand file tree Collapse file tree 6 files changed +26
-8
lines changed
Expand file tree Collapse file tree 6 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,22 @@ ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_
132132SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES OUTPUT_NAME "${PROJECT_NAME}${PYTHON_SOABI} " )
133133
134134TARGET_LINK_BOOST_PYTHON(${PROJECT_NAME} )
135- SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE )
136135PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} eigen3)
137- INSTALL (TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX} /lib)
136+ INSTALL (TARGETS ${PROJECT_NAME}
137+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX} /lib
138+ ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX} /lib
139+ RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX} /bin)
138140
139141ADD_HEADER_GROUP(${PROJECT_NAME} _HEADERS)
140142ADD_SOURCE_GROUP(${PROJECT_NAME} _SOURCES)
141143
144+ INCLUDE (GenerateExportHeader)
145+ GENERATE_EXPORT_HEADER(${PROJECT_NAME} EXPORT_FILE_NAME eigenpy/${PROJECT_NAME} _export.h)
146+ target_include_directories (${PROJECT_NAME} INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} >" )
147+
148+ INSTALL (FILES
149+ ${CMAKE_CURRENT_BINARY_DIR} /eigenpy/${PROJECT_NAME} _export.h
150+ DESTINATION include /eigenpy)
142151# ----------------------------------------------------
143152# --- PYTHON LIBRARY ---------------------------------
144153# ----------------------------------------------------
Original file line number Diff line number Diff line change 88
99#include " eigenpy/fwd.hpp"
1010#include " eigenpy/deprecated.hh"
11+ #include " eigenpy/eigenpy_export.h"
1112#if EIGEN_VERSION_AT_LEAST(3,2,0)
1213#include " eigenpy/ref.hpp"
1314
2526namespace eigenpy
2627{
2728 /* Enable Eigen-Numpy serialization for a set of standard MatrixBase instance. */
28- void enableEigenPy ();
29+ void EIGENPY_EXPORT enableEigenPy ();
2930
3031 template <typename MatType>
3132 void enableEigenPySpecific ();
Original file line number Diff line number Diff line change 66#ifndef __eigenpy_geometry_hpp__
77#define __eigenpy_geometry_hpp__
88
9+ #include " eigenpy/eigenpy_export.h"
10+
911namespace eigenpy
1012{
1113
12- void exposeQuaternion ();
13- void exposeAngleAxis ();
14+ void EIGENPY_EXPORT exposeQuaternion ();
15+ void EIGENPY_EXPORT exposeAngleAxis ();
1416
15- void exposeGeometryConversion ();
17+ void EIGENPY_EXPORT exposeGeometryConversion ();
1618
1719} // namespace eigenpy
1820
Original file line number Diff line number Diff line change 1717#ifndef __eigenpy_preconditioners_hpp__
1818#define __eigenpy_preconditioners_hpp__
1919
20+ #include " eigenpy/eigenpy_export.h"
21+
2022namespace eigenpy
2123{
2224
23- void exposePreconditioners ();
25+ void EIGENPY_EXPORT exposePreconditioners ();
2426
2527} // namespace eigenpy
2628
Original file line number Diff line number Diff line change 1717#ifndef __eigenpy_solvers_hpp__
1818#define __eigenpy_solvers_hpp__
1919
20+ #include " eigenpy/eigenpy_export.h"
21+
2022namespace eigenpy
2123{
2224 struct SolversScope {};
2325
24- void exposeSolvers ();
26+ void EIGENPY_EXPORT exposeSolvers ();
2527
2628} // namespace eigenpy
2729
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ SET_PROPERTY(TARGET ${PYWRAP} PROPERTY LINKER_LANGUAGE CXX)
3333IF (APPLE )
3434 # We need to change the extension for python bindings
3535 SET_TARGET_PROPERTIES (${PYWRAP} PROPERTIES SUFFIX ".so" )
36+ ELSEIF (WIN32 )
37+ SET_TARGET_PROPERTIES (${PYWRAP} PROPERTIES SUFFIX ".pyd" )
3638ENDIF (APPLE )
3739
3840SET_TARGET_PROPERTIES (${PYWRAP} PROPERTIES
You can’t perform that action at this time.
0 commit comments