From fe2bc5636fa03339a099efad8c1a4bc7a7d518fb Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Thu, 15 Sep 2011 11:46:06 +0200
Subject: [PATCH] ENH: missing so properties causing failure of the debian
 package generation

---
 Code/Wrappers/CommandLine/CMakeLists.txt | 6 ++++++
 Code/Wrappers/QtWidget/CMakeLists.txt    | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/Code/Wrappers/CommandLine/CMakeLists.txt b/Code/Wrappers/CommandLine/CMakeLists.txt
index 27a010cc01..bf407ff3e9 100644
--- a/Code/Wrappers/CommandLine/CMakeLists.txt
+++ b/Code/Wrappers/CommandLine/CMakeLists.txt
@@ -3,7 +3,13 @@ file(GLOB srcs "*.cxx")
 add_library(OTBWrapperCommandLine ${srcs})
 target_link_libraries(OTBWrapperCommandLine OTBApplicationEngine)
 
+IF(OTB_LIBRARY_PROPERTIES)
+  SET_TARGET_PROPERTIES(OTBWrapperCommandLine PROPERTIES ${OTB_LIBRARY_PROPERTIES})
+ENDIF(OTB_LIBRARY_PROPERTIES)
+
 install(TARGETS OTBWrapperCommandLine
         RUNTIME DESTINATION ${OTB_INSTALL_BIN_DIR_CM24}
         LIBRARY DESTINATION ${OTB_INSTALL_LIB_DIR_CM24}
         ARCHIVE DESTINATION ${OTB_INSTALL_LIB_DIR_CM24})
+
+        
\ No newline at end of file
diff --git a/Code/Wrappers/QtWidget/CMakeLists.txt b/Code/Wrappers/QtWidget/CMakeLists.txt
index beffa58cfa..c199e5ae77 100644
--- a/Code/Wrappers/QtWidget/CMakeLists.txt
+++ b/Code/Wrappers/QtWidget/CMakeLists.txt
@@ -23,6 +23,12 @@ QT4_WRAP_CPP(WrappersQtWidget_MOC_SRC ${WrappersQtWidget_MOC_HDR})
 add_library(OTBWrapperQtWidget ${srcs} ${WrappersQtWidget_MOC_SRC})
 target_link_libraries(OTBWrapperQtWidget OTBApplicationEngine ${QT_LIBRARIES})
 
+
+IF(OTB_LIBRARY_PROPERTIES)
+  SET_TARGET_PROPERTIES(OTBWrapperCommandLine PROPERTIES ${OTB_LIBRARY_PROPERTIES})
+ENDIF(OTB_LIBRARY_PROPERTIES)
+
+
 install(TARGETS OTBWrapperQtWidget
         RUNTIME DESTINATION ${OTB_INSTALL_BIN_DIR_CM24}
         LIBRARY DESTINATION ${OTB_INSTALL_LIB_DIR_CM24}
-- 
GitLab