Commit 9971138f authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: add ITK compilation flags in OTB use file

parent fd3096fa
......@@ -12,9 +12,19 @@ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${OTB_REQUIRED_LINK_
# Add include directories needed to use OTB.
include_directories(BEFORE ${OTB_INCLUDE_DIRS})
include_directories(${OTB_INCLUDE_DIRS})
# Add link directories needed to use OTB.
link_directories(${OTB_LIBRARY_DIRS})
# TODO : find_package() & include(UseFile) for all external dependencies
# find_package() are already done (in OTBConfig.cmake)
# perform include(UseFile) for all external dependencies
# ITK : don't call UseFile to avoid the include_directorties(BEFORE ...)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ITK_REQUIRED_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ITK_REQUIRED_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${ITK_REQUIRED_LINK_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${ITK_REQUIRED_LINK_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${ITK_REQUIRED_LINK_FLAGS}")
# OpenCV : no USE_FILE defined
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment