diff --git a/Code/Core/CMakeLists.txt b/Code/Core/CMakeLists.txt index 7264f2f73c045da7caaddb4b4e1677b5c3033d12..c5fb6fcf3db0c8cd28d07da5f3586cd8e0d375d4 100644 --- a/Code/Core/CMakeLists.txt +++ b/Code/Core/CMakeLists.txt @@ -2,3 +2,11 @@ file(GLOB srcs "*.cxx") add_library(OTBWrapperCore ${srcs}) target_link_libraries(OTBWrapperCore OTBCommon OTBIO) +install(TARGETS OTBWrapperCore + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib/static) + +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include/otbapp + FILES_MATCHING PATTERN "*.h") + \ No newline at end of file diff --git a/Code/Wrappers/ApplicationLauncherQt/CMakeLists.txt b/Code/Wrappers/ApplicationLauncherQt/CMakeLists.txt index 9f3beb6b99c6ed348f37d8c1bb9418293a5dbdc2..7a5a4a1b18d8c7d2a4371ae2731eda77352c9a49 100644 --- a/Code/Wrappers/ApplicationLauncherQt/CMakeLists.txt +++ b/Code/Wrappers/ApplicationLauncherQt/CMakeLists.txt @@ -10,3 +10,9 @@ target_link_libraries(otbApplicationLauncherQt OTBWrapperQtWidget OTBWrapperCore ${QT_LIBRARIES}) + +install(TARGETS otbApplicationLauncherQt + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib/static) + \ No newline at end of file diff --git a/Code/Wrappers/QtWidget/CMakeLists.txt b/Code/Wrappers/QtWidget/CMakeLists.txt index d791b160522314712fbfa9d7eff9501de0dd545c..88c208291dfaebaa352bd07e3890a074ae2c14bf 100644 --- a/Code/Wrappers/QtWidget/CMakeLists.txt +++ b/Code/Wrappers/QtWidget/CMakeLists.txt @@ -20,3 +20,12 @@ QT4_WRAP_CPP(WrappersQtWidget_MOC_SRC ${WrappersQtWidget_MOC_HDR}) add_library(OTBWrapperQtWidget ${srcs} ${WrappersQtWidget_MOC_SRC}) target_link_libraries(OTBWrapperQtWidget OTBCommon OTBIO OTBWrapperCore ${QT_LIBRARIES}) + +install(TARGETS OTBWrapperQtWidget + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib/static) + +install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include/otbapp + FILES_MATCHING PATTERN "*.h") + \ No newline at end of file diff --git a/Code/Wrappers/SWIG/CMakeLists.txt b/Code/Wrappers/SWIG/CMakeLists.txt index e1d75a4021255601b6c1d1bb1ed277d0a756991d..f93cd9043a5200b0e0aa8a2262aca775b488834b 100644 --- a/Code/Wrappers/SWIG/CMakeLists.txt +++ b/Code/Wrappers/SWIG/CMakeLists.txt @@ -140,6 +140,11 @@ if ( WRAP_LUA ) if ( UNIX ) target_link_libraries ( otbApplicationLua curses ) endif() + + install(TARGETS otbApplicationLua + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib/static) endif() @@ -161,5 +166,10 @@ if ( WRAP_RUBY ) SWIG_link_libraries ( otbApplication ${RUBY_LIBRARY} OTBWrapperCore) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/otbApplicationRUBY_wrap.cxx COMPILE_FLAGS "-w") + install(TARGETS otbapplication + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib/static) + endif()