Commit 5d053565 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

Merge branch 'add-wrapqgis-cmake-option' into 'develop'

COMP: Add a high level OTB_WRAP_QGIS cmake option

Closes #2139

See merge request orfeotoolbox/otb!793
parents 3f2d0cb8 55a997f6
Pipeline #6999 passed with stages
in 5 minutes and 37 seconds
......@@ -122,7 +122,7 @@ foreach( group ${group_list} )
set( _current_module 0 )
foreach(module ${_${group}_module_list})
if( NOT OTB_MODULE_${module}_EXCLUDE_FROM_DEFAULT )
list( APPEND _${group}_on_module_list ${_module_name} )
list( APPEND _${group}_on_module_list ${module} )
endif()
endforeach()
endforeach()
......
......@@ -515,6 +515,7 @@ foreach(otb_option
CMAKE_CXX_FLAGS
${option_list}
OTB_WRAP_PYTHON
OTB_WRAP_QGIS
OTB_DATA_ROOT
OTB_USE_OPENMP
OTB_USE_SSE_FLAGS
......
......@@ -18,4 +18,6 @@
# limitations under the License.
project(OTBQGIS)
otb_module_impl()
if(OTB_WRAP_QGIS)
otb_module_impl()
endif()
#
# Copyright (C) 2005-2021 CS Systemes d'Information (CS SI)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
option ( OTB_WRAP_QGIS "Build QGIS Descriptors" ON )
\ No newline at end of file
......@@ -222,6 +222,7 @@ ExternalProject_Add(OTB
-DOTB_USE_OPENMP:BOOL=${OTB_USE_OPENMP}
-DOTB_USE_GSL:BOOL=${OTB_USE_GSL}
-DOTB_WRAP_PYTHON:BOOL=${OTB_WRAP_PYTHON}
-DOTB_WRAP_QGIS:BOOL=${OTB_WRAP_QGIS}
-DOTB_USE_MPI:BOOL=${OTB_USE_MPI}
-DOTB_USE_SPTW:BOOL=${OTB_USE_SPTW}
-DPYTHON_EXECUTABLE:PATH=${PYTHON_EXECUTABLE}
......
......@@ -351,6 +351,7 @@ find_path(OTB_DATA_ROOT
# SWIG Wrapping
option(OTB_WRAP_PYTHON "Enable python wrappers for OTB applications (requires SWIG)" ON)
option(OTB_WRAP_QGIS "Enable QGIS descriptor compilation" ON)
configure_file(${CMAKE_SOURCE_DIR}/CMake/CTestCustom.cmake.in
${CMAKE_BINARY_DIR}/CTestCustom.cmake @ONLY)
......
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