Option to use system eigency. Copy eigency to build folder so cython can find its header without modifying PYTHONPATH

release/4.3a0
Duy-Nguyen Ta 2017-07-23 15:07:00 -04:00
parent 74f1de73ae
commit 77fb84b942
1 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,15 @@ include(GtsamCythonWrap)
# Create the cython toolbox for the gtsam library # Create the cython toolbox for the gtsam library
if (GTSAM_INSTALL_CYTHON_TOOLBOX) if (GTSAM_INSTALL_CYTHON_TOOLBOX)
add_subdirectory(eigency) # build and include eigency
if (GTSAM_USE_SYSTEM_EIGENCY)
find_package(Eigency REQUIRED)
include_directories(${EIGENCY_INCLUDE_DIRS})
else()
add_subdirectory(eigency)
include_directories(eigency)
file(COPY eigency DESTINATION ".")
endif()
# wrap gtsam # wrap gtsam
wrap_and_install_library_cython("../gtsam.h" # interface_header wrap_and_install_library_cython("../gtsam.h" # interface_header