From 306bce2226f284c5ceddb30007578677f0f1964a Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Mon, 24 Jul 2017 15:01:16 -0400 Subject: [PATCH] update instructions for cython-wrapping external projects --- cython/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cython/README.md b/cython/README.md index cb1ba361c..cfb51b73d 100644 --- a/cython/README.md +++ b/cython/README.md @@ -66,8 +66,6 @@ Examples: WRAPPING YOUR OWN PROJECT THAT USES GTSAM ========================================= -(_TO BE UPDATED_) - - Set PYTHONPATH to include ${GTSAM_CYTHON_INSTALL_PATH} + so that it can find gtsam Cython header: gtsam/gtsam.pxd @@ -78,6 +76,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${GTSAM_DIR}/../GTSAMCMakeTools") # Wrap include(GtsamCythonWrap) +find_package(eigency REQUIRED) +include_directories(${EIGENCY_INCLUDE_DIRS}) wrap_and_install_library_cython("your_project_interface.h" "from gtsam.gtsam cimport *" # extra import of gtsam/gtsam.pxd Cython header "your_install_path"