Mercurial > hg > orthanc-gcp
comparison CMakeLists.txt @ 20:a2c57c351627 OrthancGoogleCloudPlatform-1.0
add windows resources
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Jun 2019 15:53:09 +0200 |
parents | e7ea54d8c16c |
children | 17f371dc120d |
comparison
equal
deleted
inserted
replaced
18:e7ea54d8c16c | 20:a2c57c351627 |
---|---|
77 include_directories( | 77 include_directories( |
78 ${AUTOGENERATED_DIR} | 78 ${AUTOGENERATED_DIR} |
79 ${ORTHANC_ROOT} | 79 ${ORTHANC_ROOT} |
80 ) | 80 ) |
81 | 81 |
82 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | |
83 execute_process( | |
84 COMMAND | |
85 ${PYTHON_EXECUTABLE} ${ORTHANC_ROOT}/Resources/WindowsResources.py | |
86 ${GCP_PLUGIN_VERSION} "Google Cloud Platform plugin" OrthancGoogleCloudPlatform.dll | |
87 "Plugin to access Google Cloud Platform from Orthanc" | |
88 ERROR_VARIABLE Failure | |
89 OUTPUT_FILE ${CMAKE_CURRENT_BINARY_DIR}/Version.rc | |
90 ) | |
91 | |
92 if (Failure) | |
93 message(FATAL_ERROR "Error while computing the version information: ${Failure}") | |
94 endif() | |
95 | |
96 set(GCP_RESOURCES ${CMAKE_CURRENT_BINARY_DIR}/Version.rc) | |
97 endif() | |
98 | |
99 | |
82 if (ON) | 100 if (ON) |
83 # Redefine the list of Orthanc sources, removing unused items, in | 101 # Redefine the list of Orthanc sources, removing unused items, in |
84 # order to reduce the number of files and speed up the builds | 102 # order to reduce the number of files and speed up the builds |
85 set(ORTHANC_CORE_SOURCES | 103 set(ORTHANC_CORE_SOURCES |
86 ${ORTHANC_CORE_SOURCES_DEPENDENCIES} | 104 ${ORTHANC_CORE_SOURCES_DEPENDENCIES} |
93 ) | 111 ) |
94 endif() | 112 endif() |
95 | 113 |
96 add_library(OrthancGoogleCloudPlatform SHARED | 114 add_library(OrthancGoogleCloudPlatform SHARED |
97 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp | 115 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp |
116 ${GCP_RESOURCES} | |
98 Plugin/GoogleAccount.cpp | 117 Plugin/GoogleAccount.cpp |
99 Plugin/GoogleConfiguration.cpp | 118 Plugin/GoogleConfiguration.cpp |
100 Plugin/GoogleUpdater.cpp | 119 Plugin/GoogleUpdater.cpp |
101 Plugin/Plugin.cpp | 120 Plugin/Plugin.cpp |
102 | 121 |