Skip to content
Snippets Groups Projects
Commit 0529bc81 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

try to find required modules only from OTB

parent 06802a69
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,8 @@ endif()
#----------------------------------------------------------------------------
# Orfeo ToolBox
find_package(OTB REQUIRED)
find_package(OTB REQUIRED
COMPONENTS OTBApplicationEngine OTBQtWidget OTBImageIO OTBVectorDataIO OTBTestKernel OTBCarto)
if(OTB_FOUND)
include(${OTB_USE_FILE})
else(OTB_FOUND)
......@@ -140,8 +141,8 @@ endif(Mercurial_FOUND)
#----------------------------------------------------------------------------
#Build shared libraries for monteverdi
#By default, import the option from the OTB configuration
OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON)
set(BUILD_SHARED_LIBS ${OTB_BUILD_SHARED})
#----------------------------------------------------------------------------
# Configure the default OTB_DATA_ROOT for the location of OTB Data.
find_path(OTB_DATA_ROOT README-OTB-Data $ENV{OTB_DATA_ROOT})
......
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