Mercurial > hg > orthanc-gcp
diff CMakeLists.txt @ 39:56c9b700a0db
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Aug 2020 14:19:27 +0200 |
parents | 92b93845d84b |
children | 16cf7c2eb806 |
line wrap: on
line diff
--- a/CMakeLists.txt Tue Jul 07 20:39:35 2020 +0200 +++ b/CMakeLists.txt Tue Aug 04 14:19:27 2020 +0200 @@ -30,6 +30,8 @@ # Download and setup the Orthanc framework include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) +include_directories(${ORTHANC_FRAMEWORK_ROOT}) + if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) @@ -42,15 +44,14 @@ else() set(OPENSSL_STATIC_VERSION "1.0.2" CACHE STRING "TODO - Upgrade to OpenSSL 1.1.1" FORCE) - include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) + include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) set(ENABLE_CRYPTO_OPTIONS ON) set(ENABLE_ZLIB ON) set(ENABLE_WEB_CLIENT ON) set(ENABLE_OPENSSL_ENGINES ON) # Necessary on Windows - include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) - include_directories(${ORTHANC_FRAMEWORK_ROOT}/Sources) + include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake) endif() @@ -89,7 +90,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") execute_process( COMMAND - ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/Resources/WindowsResources.py + ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py ${GCP_PLUGIN_VERSION} "Google Cloud Platform plugin" OrthancGoogleCloudPlatform.dll "Plugin to access Google Cloud Platform from Orthanc" ERROR_VARIABLE Failure @@ -109,12 +110,12 @@ # order to reduce the number of files and speed up the builds set(ORTHANC_CORE_SOURCES ${ORTHANC_CORE_SOURCES_DEPENDENCIES} - ${ORTHANC_FRAMEWORK_ROOT}/Sources/ChunkedBuffer.cpp - ${ORTHANC_FRAMEWORK_ROOT}/Sources/Enumerations.cpp - ${ORTHANC_FRAMEWORK_ROOT}/Sources/HttpClient.cpp - ${ORTHANC_FRAMEWORK_ROOT}/Sources/Logging.cpp - ${ORTHANC_FRAMEWORK_ROOT}/Sources/SystemToolbox.cpp - ${ORTHANC_FRAMEWORK_ROOT}/Sources/Toolbox.cpp + ${ORTHANC_FRAMEWORK_ROOT}/ChunkedBuffer.cpp + ${ORTHANC_FRAMEWORK_ROOT}/Enumerations.cpp + ${ORTHANC_FRAMEWORK_ROOT}/HttpClient.cpp + ${ORTHANC_FRAMEWORK_ROOT}/Logging.cpp + ${ORTHANC_FRAMEWORK_ROOT}/SystemToolbox.cpp + ${ORTHANC_FRAMEWORK_ROOT}/Toolbox.cpp ) endif()