Skip to content

Instantly share code, notes, and snippets.

@dakcarto
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dakcarto/8721545 to your computer and use it in GitHub Desktop.
Save dakcarto/8721545 to your computer and use it in GitHub Desktop.
pdal swig build fixes
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index efdc796..4f19010 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -1,11 +1,12 @@
if (SWIG_FOUND)
find_package(PythonLibs)
include_directories(${PYTHON_INCLUDE_PATH})
+ include_directories("${PDAL_SOURCE_DIR}/include")
set_source_files_properties(pdal.i PROPERTIES CPLUSPLUS ON)
- swig_add_module(pdal_py python pdal.i)
- swig_link_libraries(pdal_py ${PYTHON_LIBRARIES})
+ swig_add_module(pdal python pdal.i)
+ swig_link_libraries(pdal ${PYTHON_LIBRARIES})
set_source_files_properties(${swig_generated_file_fullname} PROPERTIES COMPILE_FLAGS "-I../include")
- set_target_properties(${SWIG_MODULE_pdal_py_REAL_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ".")
- set_target_properties(${SWIG_MODULE_pdal_py_REAL_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ".")
- set_target_properties(${SWIG_MODULE_pdal_py_REAL_NAME} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ".")
-endif()
\ No newline at end of file
+ set_target_properties(${SWIG_MODULE_pdal_REAL_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ".")
+ set_target_properties(${SWIG_MODULE_pdal_REAL_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ".")
+ set_target_properties(${SWIG_MODULE_pdal_REAL_NAME} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ".")
+endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment