#
# Copyright (C) 2005-2017 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.
#

if ( OTB_WRAP_PYTHON OR OTB_WRAP_JAVA OR OTB_WRAP_PYTHON3)
  include ( UseSWIGLocal )
  list(APPEND SWIG_EXTRA_DEPS
       otbWrapperSWIGIncludes.h
       itkBase.includes
       ${CMAKE_CURRENT_SOURCE_DIR}/itkBase.i
       ${CMAKE_CURRENT_SOURCE_DIR}/itkMacro.i
       )
  include_directories ( ${CMAKE_CURRENT_SOURCE_DIR} )
endif()

# Python SWIG configuration
if ( OTB_WRAP_PYTHON )
  add_subdirectory(python)
endif()

# Python 3 SWIG configuration
if ( OTB_WRAP_PYTHON3 )
  add_subdirectory(python3)
endif()

# JAVA SWIG configuration
if ( OTB_WRAP_JAVA )
  add_subdirectory(java)
endif()
