comparison Aws/CMakeLists.txt @ 15:2a02b21f0a19

migration + storage structure
author Alain Mazy
date Tue, 01 Sep 2020 13:08:49 +0200
parents 987cb95c1aee
children 0e509a47e010 44de9edf2443
comparison
equal deleted inserted replaced
14:234946ea2038 15:2a02b21f0a19
7 set(PLUGIN_VERSION "mainline") 7 set(PLUGIN_VERSION "mainline")
8 8
9 include(CheckIncludeFileCXX) 9 include(CheckIncludeFileCXX)
10 10
11 set(ORTHANC_FRAMEWORK_SOURCE "hg" CACHE STRING "orthanc source") 11 set(ORTHANC_FRAMEWORK_SOURCE "hg" CACHE STRING "orthanc source")
12 set(ORTHANC_FRAMEWORK_VERSION "7176ebf" CACHE STRING "orthanc framework version") 12 set(ORTHANC_FRAMEWORK_VERSION "1.7.3" CACHE STRING "orthanc framework version")
13 set(ALLOW_DOWNLOADS ON) 13 set(ALLOW_DOWNLOADS ON)
14 14
15 # Download and setup the Orthanc framework 15 # Download and setup the Orthanc framework
16 include(${CMAKE_SOURCE_DIR}/../Common/Resources/DownloadOrthancFramework.cmake) 16 include(${CMAKE_SOURCE_DIR}/../Common/Resources/DownloadOrthancFramework.cmake)
17 17
18 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) 18 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake)
19 19
20 set(ENABLE_GOOGLE_TEST ON) 20 set(ENABLE_GOOGLE_TEST ON)
21 set(ORTHANC_FRAMEWORK_PLUGIN ON) 21 set(ORTHANC_FRAMEWORK_PLUGIN ON)
22 22
23 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) 23 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
24 24
25 25
26 add_definitions( 26 add_definitions(
27 -DHAS_ORTHANC_EXCEPTION=1 27 -DHAS_ORTHANC_EXCEPTION=1
28 -DORTHANC_ENABLE_LOGGING_PLUGIN=1 28 -DORTHANC_ENABLE_LOGGING=1
29 -DAWS_STORAGE_PLUGIN=1 29 -DAWS_STORAGE_PLUGIN=1
30 ) 30 )
31 add_definitions(-DPLUGIN_VERSION="${PLUGIN_VERSION}") 31 add_definitions(-DPLUGIN_VERSION="${PLUGIN_VERSION}")
32 32
33 include_directories( 33 include_directories(
34 ${ORTHANC_ROOT} 34 ${ORTHANC_FRAMEWORK_ROOT}
35 ${ORTHANC_ROOT}/Core 35 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Include
36 ${ORTHANC_ROOT}/Plugins/Include 36 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Samples/Common
37 ${ORTHANC_ROOT}/Plugins/Samples/Common
38 ) 37 )
39 38
40 39
41 find_package(cryptopp CONFIG REQUIRED) 40 find_package(cryptopp CONFIG REQUIRED)
42 find_package(AWSSDK REQUIRED COMPONENTS s3) 41 find_package(AWSSDK REQUIRED COMPONENTS s3)
43 42
44 include_directories(${WASTORAGE_INCLUDE_DIR}) 43 include_directories(${WASTORAGE_INCLUDE_DIR})
45 44
46 set(COMMON_SOURCES 45 set(COMMON_SOURCES
47 ${CMAKE_SOURCE_DIR}/../Common/IStoragePlugin.h 46 ${CMAKE_SOURCE_DIR}/../Common/IStoragePlugin.h
47 ${CMAKE_SOURCE_DIR}/../Common/BaseStoragePlugin.h
48 ${CMAKE_SOURCE_DIR}/../Common/BaseStoragePlugin.cpp
48 ${CMAKE_SOURCE_DIR}/../Common/EncryptionHelpers.cpp 49 ${CMAKE_SOURCE_DIR}/../Common/EncryptionHelpers.cpp
49 ${CMAKE_SOURCE_DIR}/../Common/EncryptionHelpers.h 50 ${CMAKE_SOURCE_DIR}/../Common/EncryptionHelpers.h
50 ${CMAKE_SOURCE_DIR}/../Common/EncryptionConfigurator.cpp 51 ${CMAKE_SOURCE_DIR}/../Common/EncryptionConfigurator.cpp
51 ${CMAKE_SOURCE_DIR}/../Common/EncryptionConfigurator.h 52 ${CMAKE_SOURCE_DIR}/../Common/EncryptionConfigurator.h
52 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp 53 ${ORTHANC_FRAMEWORK_ROOT}/../../OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
53 54
54 ${ORTHANC_CORE_SOURCES} 55 ${ORTHANC_CORE_SOURCES}
55 ) 56 )
56 57
57 add_library(OrthancAwsS3Storage SHARED 58 add_library(OrthancAwsS3Storage SHARED