Commit 9073c1a6 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: enable OTB testing with OTB-Data

parent eb6acfa7
......@@ -62,6 +62,7 @@ ExternalProject_Add(${proj}
-DBUILD_APPLICATIONS:BOOL=ON
-DOTB_WRAP_QT:BOOL=OFF
-DCMAKE_PREFIX_PATH:STRING=${CMAKE_INSTALL_PREFIX}
-DOTB_DATA_ROOT:STRING=${OTB_DATA_ROOT}
-DOTB_USE_EXTERNAL_OSSIM:BOOL=ON
${OTB_SB_ITK_CONFIG}
${OTB_SB_OSSIM_CONFIG}
......
......@@ -8,7 +8,6 @@ set(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/CMake
${CMAKE_MODULE_PATH})
include(ExternalProject)
# Call external projects
......@@ -29,4 +28,15 @@ include(External_muParser)
# TODO
# Call OTB
# set OTB_DATA_ROOT to run test
find_path(OTB_DATA_ROOT README-OTB-Data PATHS $ENV{OTB_DATA_ROOT} ${OTB-SuperBuild_SOURCE_DIR}/../OTB-Data)
include(External_OTB)
# DEBUG:
# impose to build OTB after all dependencies
add_dependencies(OTB GDAL OPENTHREAD JPEG SQLITE TIFF PROJ GEOTIFF GEOS ITK OSSIM OPENJPEG MUPARSER)
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