Skip to content
Snippets Groups Projects
Commit 60ba45c4 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix proper dependencies in build system

parent 093f3c62
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,12 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(CMAKE_SWIG_FLAGS "")
FILE(GLOB swigfiles "*.i")
FOREACH(swigfile ${swigfiles})
SET_SOURCE_FILES_PROPERTIES(${swigfile} PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(${swigfile} PROPERTIES SWIG_FLAGS "-includeall")
ENDFOREACH(swigfile ${swigfiles})
# TODO: add build dependency with the macro files
SWIG_ADD_MODULE(otbApplication python otbApplication.i)
set(SWIG_MODULE_otbApplication_EXTRA_DEPS itkBase.i itkMacro.i RefCountMacro.i)
SWIG_ADD_MODULE(otbApplication python otbApplication.i )
SWIG_LINK_LIBRARIES(otbApplication ${PYTHON_LIBRARIES} OTBWrapperCore)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment