diff --git a/Modules/ThirdParty/TIFF/CMakeLists.txt b/Modules/ThirdParty/TIFF/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..d3cb2a3a7b53cb2896ad1509c90e7f3195305398 --- /dev/null +++ b/Modules/ThirdParty/TIFF/CMakeLists.txt @@ -0,0 +1,26 @@ +# +# Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) +# +# 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. +# + +project(OTBTIFF) + +set(OTBTIFF_SYSTEM_INCLUDE_DIRS ${TIFF_INCLUDE_DIRS}) +set(OTBTIFF_LIBRARIES "${TIFF_LIBRARIES}") + +otb_module_impl() diff --git a/Modules/ThirdParty/TIFF/otb-module-init.cmake b/Modules/ThirdParty/TIFF/otb-module-init.cmake new file mode 100644 index 0000000000000000000000000000000000000000..93a99b67b9e593352f69510e69a97e91fc4abf46 --- /dev/null +++ b/Modules/ThirdParty/TIFF/otb-module-init.cmake @@ -0,0 +1,21 @@ +# +# Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) +# +# 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. +# + +find_package ( TIFF REQUIRED ) diff --git a/Modules/ThirdParty/TIFF/otb-module.cmake b/Modules/ThirdParty/TIFF/otb-module.cmake new file mode 100644 index 0000000000000000000000000000000000000000..a0662801804720735275fc8ef276decf750e5035 --- /dev/null +++ b/Modules/ThirdParty/TIFF/otb-module.cmake @@ -0,0 +1,32 @@ +# +# Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) +# +# 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. +# + +set(DOCUMENTATION "This module imports TIFF to the build system") + +otb_module(OTBTIFF + DEPENDS + + TEST_DEPENDS + + DESCRIPTION + "${DOCUMENTATION}" + + EXCLUDE_FROM_DEFAULT + )