changeset 131:9520a6d10992

added install step in CMake
author Alain Mazy <am@osimis.io>
date Wed, 29 Nov 2023 09:42:26 +0100
parents 17f350ab12ca
children 573585bcc9ff
files Aws/CMakeLists.txt Azure/CMakeLists.txt Google/CMakeLists.txt
diffstat 3 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Aws/CMakeLists.txt	Tue Nov 28 14:11:11 2023 +0100
+++ b/Aws/CMakeLists.txt	Wed Nov 29 09:42:26 2023 +0100
@@ -164,6 +164,14 @@
   ${ORTHANC_FRAMEWORK_LIBRARIES}
   )
 
+
+install(
+  TARGETS OrthancAwsS3Storage
+  RUNTIME DESTINATION lib    # Destination for Windows
+  LIBRARY DESTINATION share/orthanc/plugins    # Destination for Linux
+)
+
+
 add_executable(UnitTests
   ${GOOGLE_TEST_SOURCES}
   ${COMMON_SOURCES}
--- a/Azure/CMakeLists.txt	Tue Nov 28 14:11:11 2023 +0100
+++ b/Azure/CMakeLists.txt	Wed Nov 29 09:42:26 2023 +0100
@@ -152,6 +152,12 @@
 
 endif()
 
+install(
+  TARGETS OrthancAzureBlobStorage
+  RUNTIME DESTINATION lib    # Destination for Windows
+  LIBRARY DESTINATION share/orthanc/plugins    # Destination for Linux
+)
+
 
 # add_executable(UnitTests
 #     ${GOOGLE_TEST_SOURCES}
--- a/Google/CMakeLists.txt	Tue Nov 28 14:11:11 2023 +0100
+++ b/Google/CMakeLists.txt	Wed Nov 29 09:42:26 2023 +0100
@@ -115,6 +115,12 @@
   cryptopp::cryptopp
   )
 
+install(
+  TARGETS OrthancGoogleCloudStorage
+  RUNTIME DESTINATION lib    # Destination for Windows
+  LIBRARY DESTINATION share/orthanc/plugins    # Destination for Linux
+)
+
 add_executable(UnitTests
     ${GOOGLE_TEST_SOURCES}
     ${COMMON_SOURCES}