From 0529bc8120330df1dc8bec17688e61bb6e6f04fd Mon Sep 17 00:00:00 2001 From: Rashad Kanavath <rashad.kanavath@c-s.fr> Date: Wed, 8 Apr 2015 17:09:20 +0200 Subject: [PATCH] try to find required modules only from OTB --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c2e80d811..5f697fe64d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) -- GitLab