29 lines
		
	
	
		
			911 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			911 B
		
	
	
	
		
			Python
		
	
	
| from distutils.core import setup
 | |
| from distutils.extension import Extension
 | |
| from Cython.Build import cythonize
 | |
| import eigency
 | |
| import sys
 | |
| import os
 | |
| 
 | |
| # so that it can find the wrapped gtsam package
 | |
| sys.path.append("..")
 | |
| 
 | |
| os.environ["CXX"] = "${CMAKE_CXX_COMPILER}"
 | |
| os.environ["CC"] = "${CMAKE_C_COMPILER}"
 | |
| 
 | |
| setup(
 | |
|     ext_modules=cythonize(Extension(
 | |
|         "gtsam_unstable",
 | |
|         sources=["gtsam_unstable.pyx"],
 | |
|         include_dirs = ["${CMAKE_SOURCE_DIR}", "${CMAKE_BINARY_DIR}",
 | |
|                         "${CMAKE_SOURCE_DIR}/gtsam/3rdparty/Eigen",
 | |
|                         "${Boost_INCLUDE_DIR}"
 | |
|                        ] + eigency.get_includes(include_eigen=False),
 | |
|         libraries=['gtsam', 'gtsam_unstable'],
 | |
|         library_dirs=["${GTSAM_DIR}/../../"],
 | |
|         language="c++",
 | |
|         extra_compile_args="${CMAKE_CXX_FLAGS}".split(),
 | |
|         extra_link_args="${CMAKE_SHARED_LINKER_FLAGS}".split()))
 | |
| )
 | |
| 
 |