diff --git a/Code/Wrappers/CommandLine/CMakeLists.txt b/Code/Wrappers/CommandLine/CMakeLists.txt index 27a010cc013f56a3b23f7a18672dd5458b5df6ac..bf407ff3e90a09f8d83e8173b7b19b1c69590aef 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 beffa58cfa2ce6c71eff08f90a231a636395384c..c199e5ae77272b2e779b9f8ebaa50a2da2013e4e 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}