From 92dd1fc237ba9d1b4693cc2a317a3cec5bac4889 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Fri, 13 Feb 2009 17:22:11 +0800
Subject: [PATCH] COMP: clearing up itk mess

---
 .../DataRepresentation/Containers/CMakeLists.txt   |  2 +-
 Examples/DataRepresentation/Mesh/CMakeLists.txt    | 14 +++++++-------
 Testing/Fa/CMakeLists.txt                          |  6 +++---
 Testing/Utilities/CMakeLists.txt                   |  6 +++---
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/Examples/DataRepresentation/Containers/CMakeLists.txt b/Examples/DataRepresentation/Containers/CMakeLists.txt
index fe96aced06..738f201af0 100644
--- a/Examples/DataRepresentation/Containers/CMakeLists.txt
+++ b/Examples/DataRepresentation/Containers/CMakeLists.txt
@@ -2,6 +2,6 @@ PROJECT(ContainersExamples)
 INCLUDE_REGULAR_EXPRESSION("^.*$")
 
 ADD_EXECUTABLE(TreeContainer TreeContainer.cxx )
-TARGET_LINK_LIBRARIES(TreeContainer)
+TARGET_LINK_LIBRARIES(TreeContainer ITKCommon)
 
 
diff --git a/Examples/DataRepresentation/Mesh/CMakeLists.txt b/Examples/DataRepresentation/Mesh/CMakeLists.txt
index 8ff1e17570..7352ac5d08 100644
--- a/Examples/DataRepresentation/Mesh/CMakeLists.txt
+++ b/Examples/DataRepresentation/Mesh/CMakeLists.txt
@@ -3,23 +3,23 @@ INCLUDE_REGULAR_EXPRESSION("^.*$")
 
 
 ADD_EXECUTABLE(Mesh1 Mesh1.cxx )
-TARGET_LINK_LIBRARIES(Mesh1)
+TARGET_LINK_LIBRARIES(Mesh1 ITKCommon)
 
 ADD_EXECUTABLE(Mesh2 Mesh2.cxx )
-TARGET_LINK_LIBRARIES(Mesh2)
+TARGET_LINK_LIBRARIES(Mesh2 ITKCommon)
 
 ADD_EXECUTABLE(Mesh3 Mesh3.cxx )
-TARGET_LINK_LIBRARIES(Mesh3)
+TARGET_LINK_LIBRARIES(Mesh3 ITKCommon)
 
 ADD_EXECUTABLE(PointSet1 PointSet1.cxx )
-TARGET_LINK_LIBRARIES(PointSet1)
+TARGET_LINK_LIBRARIES(PointSet1 ITKCommon)
 
 ADD_EXECUTABLE(PointSet2 PointSet2.cxx )
-TARGET_LINK_LIBRARIES(PointSet2)
+TARGET_LINK_LIBRARIES(PointSet2 ITKCommon)
 
 ADD_EXECUTABLE(PointSet3 PointSet3.cxx )
-TARGET_LINK_LIBRARIES(PointSet3)
+TARGET_LINK_LIBRARIES(PointSet3 ITKCommon)
 
 ADD_EXECUTABLE(PointSetWithVectors PointSetWithVectors.cxx )
-TARGET_LINK_LIBRARIES(PointSetWithVectors)
+TARGET_LINK_LIBRARIES(PointSetWithVectors ITKCommon)
 
diff --git a/Testing/Fa/CMakeLists.txt b/Testing/Fa/CMakeLists.txt
index ec9f545dab..ce6aa117b5 100644
--- a/Testing/Fa/CMakeLists.txt
+++ b/Testing/Fa/CMakeLists.txt
@@ -216,13 +216,13 @@ ADD_TEST(FA-0000041-mean_shift2 ${CXX_TEST_PATH}/0000041-mean_shift
 	)
 
 ADD_EXECUTABLE(AlignementsQB  AlignementsQB.cxx)
-TARGET_LINK_LIBRARIES(AlignementsQB OTBFeatureExtraction OTBIO OTBCommon ITKIO ITKCommon)
+TARGET_LINK_LIBRARIES(AlignementsQB OTBFeatureExtraction OTBIO OTBCommon)
 
 ADD_EXECUTABLE(MapActivation  MapActivation.cxx)
-TARGET_LINK_LIBRARIES(MapActivation OTBFeatureExtraction OTBIO OTBCommon ITKIO ITKCommon)
+TARGET_LINK_LIBRARIES(MapActivation OTBFeatureExtraction OTBIO OTBCommon)
 
 ADD_EXECUTABLE(StreamingStat  StreamingStat.cxx)
-TARGET_LINK_LIBRARIES(StreamingStat OTBFeatureExtraction OTBIO OTBCommon ITKIO ITKCommon)
+TARGET_LINK_LIBRARIES(StreamingStat OTBFeatureExtraction OTBIO OTBCommon)
 
 ADD_EXECUTABLE(0000041-mean_shift  0000041-mean_shift.cxx)
 TARGET_LINK_LIBRARIES(0000041-mean_shift OTBIO OTBCommon OTBBasicFilters)
diff --git a/Testing/Utilities/CMakeLists.txt b/Testing/Utilities/CMakeLists.txt
index cf512c4f4d..394bdb7db1 100644
--- a/Testing/Utilities/CMakeLists.txt
+++ b/Testing/Utilities/CMakeLists.txt
@@ -515,7 +515,7 @@ IF(NOT BUILD_SHARED_LIBS)
 ENDIF(NOT BUILD_SHARED_LIBS)
 
 ADD_EXECUTABLE(otbUtilitiesTests otbUtilitiesTests.cxx ${UtilitiesTests_SRCS})
-TARGET_LINK_LIBRARIES(otbUtilitiesTests OTBIO OTBCommon ${GDAL_LIBRARY} ITKIO ITKAlgorithms ITKStatistics ITKCommon otbossim otbsvm otb6S tinyXML otbkml otbsiftfast)
+TARGET_LINK_LIBRARIES(otbUtilitiesTests OTBIO OTBCommon ${GDAL_LIBRARY} ITKAlgorithms ITKStatistics otbossim otbsvm otb6S tinyXML otbkml otbsiftfast)
 
 IF(OTB_COMPILE_JPEG2000)
   TARGET_LINK_LIBRARIES(otbUtilitiesTests otbopenjpeg)
@@ -546,14 +546,14 @@ ENDIF(UNIX)
 
 # Original 6S main executable in C
 #     ADD_EXECUTABLE(otb6SMain 6SMainTest.cxx )
-#     TARGET_LINK_LIBRARIES(otb6SMain OTBCommon ITKCommon otb6S)
+#     TARGET_LINK_LIBRARIES(otb6SMain OTBCommon otb6S)
 #     IF(UNIX)
 #         TARGET_LINK_LIBRARIES (otb6SMain m)
 #     ENDIF(UNIX)
 
 # OTB 6S main executable in C (call 6S main function.
 #     ADD_EXECUTABLE(otb6SMainWithCallFunction 6SMainOtbWithCallFunctionTest.cxx )
-#     TARGET_LINK_LIBRARIES(otb6SMainWithCallFunction OTBCommon ITKCommon otb6S)
+#     TARGET_LINK_LIBRARIES(otb6SMainWithCallFunction OTBCommon otb6S)
 #     IF(UNIX)
 #         TARGET_LINK_LIBRARIES (otb6SMainWithCallFunction m)
 #     ENDIF(UNIX)
-- 
GitLab