From e95b705a1df6e3f8d49ab0fa9eb3d0cfe8af2000 Mon Sep 17 00:00:00 2001
From: Guillaume Pasero <guillaume.pasero@c-s.fr>
Date: Thu, 9 Nov 2017 17:11:44 +0100
Subject: [PATCH] STYLE: remove unused variables _LINK_LIBS

---
 .../AppChangeDetection/app/CMakeLists.txt     |  5 ----
 .../AppClassification/app/CMakeLists.txt      | 27 -------------------
 .../AppDescriptors/app/CMakeLists.txt         |  9 -------
 .../app/CMakeLists.txt                        |  7 -----
 .../Applications/AppEdge/app/CMakeLists.txt   |  9 -------
 .../AppFiltering/app/CMakeLists.txt           |  6 -----
 .../Applications/AppFusion/app/CMakeLists.txt |  8 ------
 .../AppHyperspectral/app/CMakeLists.txt       |  7 -----
 .../AppImageUtils/app/CMakeLists.txt          | 18 -------------
 .../AppIndices/app/CMakeLists.txt             |  6 -----
 .../Applications/AppKMZ/app/CMakeLists.txt    |  4 ---
 .../AppMathParser/app/CMakeLists.txt          |  8 ------
 .../AppMathParserX/app/CMakeLists.txt         |  7 -----
 .../AppMoments/app/CMakeLists.txt             |  6 -----
 .../AppMorphology/app/CMakeLists.txt          |  7 -----
 .../AppOpticalCalibration/app/CMakeLists.txt  |  7 -----
 .../AppProjection/app/CMakeLists.txt          | 15 -----------
 .../AppSARCalibration/app/CMakeLists.txt      |  5 ----
 .../AppSARDecompositions/app/CMakeLists.txt   |  7 -----
 .../app/CMakeLists.txt                        |  7 -----
 .../AppSARPolarSynth/app/CMakeLists.txt       |  7 -----
 .../AppSARUtils/app/CMakeLists.txt            | 26 +++++++++++++-----
 .../AppSegmentation/app/CMakeLists.txt        | 23 ----------------
 .../Applications/AppStereo/app/CMakeLists.txt | 15 -----------
 .../Applications/AppTest/app/CMakeLists.txt   |  4 ---
 .../AppTextures/app/CMakeLists.txt            |  8 ------
 .../app/CMakeLists.txt                        |  6 -----
 .../AppVectorUtils/app/CMakeLists.txt         |  9 -------
 28 files changed, 19 insertions(+), 254 deletions(-)

diff --git a/Modules/Applications/AppChangeDetection/app/CMakeLists.txt b/Modules/Applications/AppChangeDetection/app/CMakeLists.txt
index cf5f9c2576..71af979dca 100644
--- a/Modules/Applications/AppChangeDetection/app/CMakeLists.txt
+++ b/Modules/Applications/AppChangeDetection/app/CMakeLists.txt
@@ -18,11 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppChangeDetection_LINK_LIBS
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBChangeDetection_LIBRARIES}
-)
-
 otb_create_application(
   NAME           MultivariateAlterationDetector
   SOURCES        otbMultivariateAlterationDetector.cxx
diff --git a/Modules/Applications/AppClassification/app/CMakeLists.txt b/Modules/Applications/AppClassification/app/CMakeLists.txt
index cfa104e590..d72dd40b28 100644
--- a/Modules/Applications/AppClassification/app/CMakeLists.txt
+++ b/Modules/Applications/AppClassification/app/CMakeLists.txt
@@ -18,33 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppClassification_LINK_LIBS
-  ${OTBVectorDataBase_LIBRARIES}
-  ${OTBConversion_LIBRARIES}
-  ${OTBStatistics_LIBRARIES}
-  ${OTBColorMap_LIBRARIES}
-  ${OTBBoost_LIBRARIES}
-  ${OTBInterpolation_LIBRARIES}
-  ${OTBMajorityVoting_LIBRARIES}
-  ${OTBVectorDataIO_LIBRARIES}
-  ${OTBSOM_LIBRARIES}
-  ${OTBSVMLearning_LIBRARIES}
-  ${OTBLearningBase_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBIndices_LIBRARIES}
-  ${OTBMathParser_LIBRARIES}
-  ${OTBDempsterShafer_LIBRARIES}
-  ${OTBGdalAdapters_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBIOXML_LIBRARIES}
-  ${OTBVectorDataManipulation_LIBRARIES}
-  ${OTBStreaming_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-  ${OTBCommon_LIBRARIES}
-)
-
 otb_create_application(
   NAME           ComputeOGRLayersFeaturesStatistics
   SOURCES        otbComputeOGRLayersFeaturesStatistics.cxx
diff --git a/Modules/Applications/AppDescriptors/app/CMakeLists.txt b/Modules/Applications/AppDescriptors/app/CMakeLists.txt
index 648fa7cc39..8942e2ded5 100644
--- a/Modules/Applications/AppDescriptors/app/CMakeLists.txt
+++ b/Modules/Applications/AppDescriptors/app/CMakeLists.txt
@@ -18,15 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppDescriptors_LINK_LIBS
-  ${OTBGdalAdapters_LIBRARIES}
-  ${OTBDescriptors_LIBRARIES}
-  ${OTBTransform_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBGDAL_LIBRARIES}
-)
-
 otb_create_application(
   NAME           HomologousPointsExtraction
   SOURCES        otbHomologousPointsExtraction.cxx
diff --git a/Modules/Applications/AppDimensionalityReduction/app/CMakeLists.txt b/Modules/Applications/AppDimensionalityReduction/app/CMakeLists.txt
index fcde242bb1..63c4a21056 100644
--- a/Modules/Applications/AppDimensionalityReduction/app/CMakeLists.txt
+++ b/Modules/Applications/AppDimensionalityReduction/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppDimensionalityReduction_LINK_LIBS
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBStatistics_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBDimensionalityReduction_LIBRARIES}
-)
-
 otb_create_application(
   NAME           DimensionalityReduction
   SOURCES        otbDimensionalityReduction.cxx
diff --git a/Modules/Applications/AppEdge/app/CMakeLists.txt b/Modules/Applications/AppEdge/app/CMakeLists.txt
index 31a9f46fef..e72b1e45ec 100644
--- a/Modules/Applications/AppEdge/app/CMakeLists.txt
+++ b/Modules/Applications/AppEdge/app/CMakeLists.txt
@@ -18,15 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppEdge_LINK_LIBS
-  ${OTBStatistics_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBEdge_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-)
-
 otb_create_application(
   NAME           LineSegmentDetection
   SOURCES        otbLineSegmentDetection.cxx
diff --git a/Modules/Applications/AppFiltering/app/CMakeLists.txt b/Modules/Applications/AppFiltering/app/CMakeLists.txt
index d7f3dcd0c3..e174308039 100644
--- a/Modules/Applications/AppFiltering/app/CMakeLists.txt
+++ b/Modules/Applications/AppFiltering/app/CMakeLists.txt
@@ -18,12 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppFiltering_LINK_LIBS
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-)
-
 otb_create_application(
   NAME           Smoothing
   SOURCES        otbSmoothing.cxx
diff --git a/Modules/Applications/AppFusion/app/CMakeLists.txt b/Modules/Applications/AppFusion/app/CMakeLists.txt
index 1e7a0eb915..62a40faa23 100644
--- a/Modules/Applications/AppFusion/app/CMakeLists.txt
+++ b/Modules/Applications/AppFusion/app/CMakeLists.txt
@@ -18,14 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppFusion_LINK_LIBS
-  ${OTBImageBase_LIBRARIES}
-  ${OTBInterpolation_LIBRARIES}
-  ${OTBPanSharpening_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-)
-
 otb_create_application(
   NAME           BundleToPerfectSensor
   SOURCES        otbBundleToPerfectSensor.cxx
diff --git a/Modules/Applications/AppHyperspectral/app/CMakeLists.txt b/Modules/Applications/AppHyperspectral/app/CMakeLists.txt
index 6256b8b601..a8e5d48879 100644
--- a/Modules/Applications/AppHyperspectral/app/CMakeLists.txt
+++ b/Modules/Applications/AppHyperspectral/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppHyperspectral_LINK_LIBS
-  ${OTBStatistics_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBEndmembersExtraction_LIBRARIES}
-  ${OTBUnmixing_LIBRARIES}
-)
-
 otb_create_application(
   NAME           HyperspectralUnmixing
   SOURCES        otbHyperspectralUnmixing.cxx
diff --git a/Modules/Applications/AppImageUtils/app/CMakeLists.txt b/Modules/Applications/AppImageUtils/app/CMakeLists.txt
index 369b82f06e..fe9bab84a5 100644
--- a/Modules/Applications/AppImageUtils/app/CMakeLists.txt
+++ b/Modules/Applications/AppImageUtils/app/CMakeLists.txt
@@ -18,24 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppImageUtils_LINK_LIBS
-  ${OTBStatistics_LIBRARIES}
-  ${OTBColorMap_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBTransform_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBStreaming_LIBRARIES}
-  ${OTBCarto_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBCurlAdapters_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBMathParser_LIBRARIES}
-  ${OTBCommon_LIBRARIES}
-  ${OTBInterpolation_LIBRARIES}
-  ${OTBOSSIMAdapters_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-)
-
 otb_create_application(
   NAME           DownloadSRTMTiles
   SOURCES        otbDownloadSRTMTiles.cxx
diff --git a/Modules/Applications/AppIndices/app/CMakeLists.txt b/Modules/Applications/AppIndices/app/CMakeLists.txt
index 188bcf79d5..e17b73ed10 100644
--- a/Modules/Applications/AppIndices/app/CMakeLists.txt
+++ b/Modules/Applications/AppIndices/app/CMakeLists.txt
@@ -18,12 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppIndices_LINK_LIBS
-  ${OTBIndices_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-)
-
 otb_create_application(
   NAME           RadiometricIndices
   SOURCES        otbRadiometricIndices.cxx
diff --git a/Modules/Applications/AppKMZ/app/CMakeLists.txt b/Modules/Applications/AppKMZ/app/CMakeLists.txt
index 2ac1d7b88c..40a4c3f9ac 100644
--- a/Modules/Applications/AppKMZ/app/CMakeLists.txt
+++ b/Modules/Applications/AppKMZ/app/CMakeLists.txt
@@ -18,10 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppImageUtils_LINK_LIBS
-  ${OTBKMZWriter_LIBRARIES}
-)
-
 otb_create_application(
   NAME           KmzExport
   SOURCES        otbKmzExport.cxx
diff --git a/Modules/Applications/AppMathParser/app/CMakeLists.txt b/Modules/Applications/AppMathParser/app/CMakeLists.txt
index de42c60d71..5169067533 100644
--- a/Modules/Applications/AppMathParser/app/CMakeLists.txt
+++ b/Modules/Applications/AppMathParser/app/CMakeLists.txt
@@ -18,14 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppMathParser_LINK_LIBS
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBMathParser_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-  )
-
-
 otb_create_application(
   NAME           BandMath
   SOURCES        otbBandMath.cxx
diff --git a/Modules/Applications/AppMathParserX/app/CMakeLists.txt b/Modules/Applications/AppMathParserX/app/CMakeLists.txt
index fef444d2f1..e36ba79b11 100644
--- a/Modules/Applications/AppMathParserX/app/CMakeLists.txt
+++ b/Modules/Applications/AppMathParserX/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppMathParserX_LINK_LIBS
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBMathParserX_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-  )
-
-
 otb_create_application(
   NAME           BandMathX
   SOURCES        otbBandMathX.cxx
diff --git a/Modules/Applications/AppMoments/app/CMakeLists.txt b/Modules/Applications/AppMoments/app/CMakeLists.txt
index 8a59214f5f..197588da64 100644
--- a/Modules/Applications/AppMoments/app/CMakeLists.txt
+++ b/Modules/Applications/AppMoments/app/CMakeLists.txt
@@ -18,12 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppMoments_LINK_LIBS
-  ${OTBMoments_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-)
-
 otb_create_application(
   NAME           LocalStatisticExtraction
   SOURCES        otbLocalStatisticExtraction.cxx
diff --git a/Modules/Applications/AppMorphology/app/CMakeLists.txt b/Modules/Applications/AppMorphology/app/CMakeLists.txt
index dd1d8c9aec..dbb2b77582 100644
--- a/Modules/Applications/AppMorphology/app/CMakeLists.txt
+++ b/Modules/Applications/AppMorphology/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppMorphology_LINK_LIBS
-  ${OTBImageBase_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-  ${OTBMorphologicalProfiles_LIBRARIES}
-)
-
 otb_create_application(
   NAME           BinaryMorphologicalOperation
   SOURCES        otbBinaryMorphologicalOperation.cxx
diff --git a/Modules/Applications/AppOpticalCalibration/app/CMakeLists.txt b/Modules/Applications/AppOpticalCalibration/app/CMakeLists.txt
index 083697c509..736e1fb6f6 100644
--- a/Modules/Applications/AppOpticalCalibration/app/CMakeLists.txt
+++ b/Modules/Applications/AppOpticalCalibration/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppOpticalCalibration_LINK_LIBS
-  ${OTBOpticalCalibration_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-)
-
 otb_create_application(
   NAME           OpticalCalibration
   SOURCES        otbOpticalCalibration.cxx
diff --git a/Modules/Applications/AppProjection/app/CMakeLists.txt b/Modules/Applications/AppProjection/app/CMakeLists.txt
index e072604c71..059348c840 100644
--- a/Modules/Applications/AppProjection/app/CMakeLists.txt
+++ b/Modules/Applications/AppProjection/app/CMakeLists.txt
@@ -18,21 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppProjection_LINK_LIBS
-  ${OTBGdalAdapters_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBTransform_LIBRARIES}
-  ${OTBOSSIMAdapters_LIBRARIES}
-  ${OTBCarto_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBMathParser_LIBRARIES}
-  ${OTBCommon_LIBRARIES}
-  ${OTBGDAL_LIBRARIES}
-  ${OTBInterpolation_LIBRARIES}
-)
-
 otb_create_application(
   NAME           OrthoRectification
   SOURCES        otbOrthoRectification.cxx
diff --git a/Modules/Applications/AppSARCalibration/app/CMakeLists.txt b/Modules/Applications/AppSARCalibration/app/CMakeLists.txt
index ee25f98ec2..4360104d2a 100644
--- a/Modules/Applications/AppSARCalibration/app/CMakeLists.txt
+++ b/Modules/Applications/AppSARCalibration/app/CMakeLists.txt
@@ -18,11 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppSARCalibration_LINK_LIBS
-  ${OTBSARCalibration_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-)
-
 otb_create_application(
   NAME           SARCalibration
   SOURCES        otbSARCalibration.cxx
diff --git a/Modules/Applications/AppSARDecompositions/app/CMakeLists.txt b/Modules/Applications/AppSARDecompositions/app/CMakeLists.txt
index 10c7ea39fc..4c34d61350 100644
--- a/Modules/Applications/AppSARDecompositions/app/CMakeLists.txt
+++ b/Modules/Applications/AppSARDecompositions/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppFiltering_LINK_LIBS
-  ${OTBPolarimetry_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-)
-
 otb_create_application(
   NAME           SARDecompositions
   SOURCES        otbSARDecompositions.cxx
diff --git a/Modules/Applications/AppSARPolarMatrixConvert/app/CMakeLists.txt b/Modules/Applications/AppSARPolarMatrixConvert/app/CMakeLists.txt
index dd8715afe8..e3fd251eb1 100644
--- a/Modules/Applications/AppSARPolarMatrixConvert/app/CMakeLists.txt
+++ b/Modules/Applications/AppSARPolarMatrixConvert/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppFiltering_LINK_LIBS
-  ${OTBPolarimetry_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-)
-
 otb_create_application(
   NAME           SARPolarMatrixConvert
   SOURCES        otbSARPolarMatrixConvert.cxx
diff --git a/Modules/Applications/AppSARPolarSynth/app/CMakeLists.txt b/Modules/Applications/AppSARPolarSynth/app/CMakeLists.txt
index 5390d9a85a..ce4c55e0c8 100644
--- a/Modules/Applications/AppSARPolarSynth/app/CMakeLists.txt
+++ b/Modules/Applications/AppSARPolarSynth/app/CMakeLists.txt
@@ -18,13 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppFiltering_LINK_LIBS
-  ${OTBPolarimetry_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-)
-
 otb_create_application(
   NAME           SARPolarSynth
   SOURCES        otbSARPolarSynth.cxx
diff --git a/Modules/Applications/AppSARUtils/app/CMakeLists.txt b/Modules/Applications/AppSARUtils/app/CMakeLists.txt
index 6f0e019f71..2c43cc4d88 100644
--- a/Modules/Applications/AppSARUtils/app/CMakeLists.txt
+++ b/Modules/Applications/AppSARUtils/app/CMakeLists.txt
@@ -1,10 +1,22 @@
-set(OTBAppSARUtils_LINK_LIBS
-  ${OTBSARUtils_LIBRARIES}
-  {OTBImageNoise_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBITK_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-)
+#
+# 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.
+#
 
 otb_create_application(
   NAME           ComputeModulusAndPhase
diff --git a/Modules/Applications/AppSegmentation/app/CMakeLists.txt b/Modules/Applications/AppSegmentation/app/CMakeLists.txt
index f55ae3d7f9..b6003d6cac 100644
--- a/Modules/Applications/AppSegmentation/app/CMakeLists.txt
+++ b/Modules/Applications/AppSegmentation/app/CMakeLists.txt
@@ -18,29 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppSegmentation_LINK_LIBS
-  ${OTBVectorDataBase_LIBRARIES}
-  ${OTBLabelMap_LIBRARIES}
-  ${OTBConversion_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBImageIO_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBWatersheds_LIBRARIES}
-  ${OTBGdalAdapters_LIBRARIES}
-  ${OTBSmoothing_LIBRARIES}
-  ${OTBMetrics_LIBRARIES}
-  ${OTBOGRProcessing_LIBRARIES}
-  ${OTBStatistics_LIBRARIES}
-  ${OTBMeanShift_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBCCOBIA_LIBRARIES}
-  ${OTBMathParser_LIBRARIES}
-  ${OTBMorphologicalProfiles_LIBRARIES}
-  ${OTBTransform_LIBRARIES}
-  ${OTBCommon_LIBRARIES}
-)
-
 otb_create_application(
   NAME           Segmentation
   SOURCES        otbSegmentation.cxx
diff --git a/Modules/Applications/AppStereo/app/CMakeLists.txt b/Modules/Applications/AppStereo/app/CMakeLists.txt
index 3bcccffde4..8fc636a983 100644
--- a/Modules/Applications/AppStereo/app/CMakeLists.txt
+++ b/Modules/Applications/AppStereo/app/CMakeLists.txt
@@ -18,21 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppStereo_LINK_LIBS
-  ${OTBStereo_LIBRARIES}
-  ${OTBStatistics_LIBRARIES}
-  ${OTBImageIO_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBInterpolation_LIBRARIES}
-  ${OTBTransform_LIBRARIES}
-  ${OTBDisplacementField_LIBRARIES}
-  ${OTBDisparityMap_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-  ${OTBMathParser_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-)
-
 otb_create_application(
   NAME           StereoFramework
   SOURCES        otbStereoFramework.cxx
diff --git a/Modules/Applications/AppTest/app/CMakeLists.txt b/Modules/Applications/AppTest/app/CMakeLists.txt
index 6de8cbe034..44d54be96b 100644
--- a/Modules/Applications/AppTest/app/CMakeLists.txt
+++ b/Modules/Applications/AppTest/app/CMakeLists.txt
@@ -18,10 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppTest_LINK_LIBS
-  ${OTBApplicationEngine_LIBRARIES}
-)
-
 otb_create_application(
   NAME           TestApplication
   SOURCES        otbTestApplication.cxx
diff --git a/Modules/Applications/AppTextures/app/CMakeLists.txt b/Modules/Applications/AppTextures/app/CMakeLists.txt
index 8f05f8dc9a..c25a67ff85 100644
--- a/Modules/Applications/AppTextures/app/CMakeLists.txt
+++ b/Modules/Applications/AppTextures/app/CMakeLists.txt
@@ -18,14 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppTextures_LINK_LIBS
-  ${OTBTextures_LIBRARIES}
-  ${OTBImageBase_LIBRARIES}
-  ${OTBObjectList_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBImageManipulation_LIBRARIES}
-)
-
 otb_create_application(
   NAME           HaralickTextureExtraction
   SOURCES        otbHaralickTextureExtraction.cxx
diff --git a/Modules/Applications/AppVectorDataTranslation/app/CMakeLists.txt b/Modules/Applications/AppVectorDataTranslation/app/CMakeLists.txt
index 6f67792bb7..23f81580cb 100644
--- a/Modules/Applications/AppVectorDataTranslation/app/CMakeLists.txt
+++ b/Modules/Applications/AppVectorDataTranslation/app/CMakeLists.txt
@@ -18,12 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppVectorDataTranslation_LINK_LIBS
-  ${OTBConversion_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-  ${OTBTransform_LIBRARIES}
-)
-
 otb_create_application(
   NAME           Rasterization
   SOURCES        otbRasterization.cxx
diff --git a/Modules/Applications/AppVectorUtils/app/CMakeLists.txt b/Modules/Applications/AppVectorUtils/app/CMakeLists.txt
index 4782c35a9b..b3a40811ab 100644
--- a/Modules/Applications/AppVectorUtils/app/CMakeLists.txt
+++ b/Modules/Applications/AppVectorUtils/app/CMakeLists.txt
@@ -18,15 +18,6 @@
 # limitations under the License.
 #
 
-set(OTBAppVectorUtils_LINK_LIBS
-  ${OTBVectorDataBase_LIBRARIES}
-  ${OTBProjection_LIBRARIES}
-  ${OTBVectorDataManipulation_LIBRARIES}
-  ${OTBCarto_LIBRARIES}
-  ${OTBCommon_LIBRARIES}
-  ${OTBApplicationEngine_LIBRARIES}
-)
-
 otb_create_application(
   NAME           VectorDataTransform
   SOURCES        otbVectorDataTransform.cxx
-- 
GitLab