comparison CMakeLists.txt @ 1:734066ca3b7d

shorter name
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Sep 2018 11:40:42 +0200
parents 95226b754d9e
children 151e29acbb13
comparison
equal deleted inserted replaced
0:95226b754d9e 1:734066ca3b7d
14 # You should have received a copy of the GNU Affero General Public License 14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
17 17
18 cmake_minimum_required(VERSION 2.8) 18 cmake_minimum_required(VERSION 2.8)
19 project(OrthancTransfersAccelerator) 19 project(OrthancTransfers)
20 20
21 set(ORTHANC_PLUGIN_VERSION "mainline") 21 set(ORTHANC_PLUGIN_VERSION "mainline")
22 22
23 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline") 23 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline")
24 set(ORTHANC_FRAMEWORK_VERSION "mainline") 24 set(ORTHANC_FRAMEWORK_VERSION "mainline")
75 75
76 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 76 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
77 execute_process( 77 execute_process(
78 COMMAND 78 COMMAND
79 ${PYTHON_EXECUTABLE} ${ORTHANC_ROOT}/Resources/WindowsResources.py 79 ${PYTHON_EXECUTABLE} ${ORTHANC_ROOT}/Resources/WindowsResources.py
80 ${ORTHANC_PLUGIN_VERSION} "TransfersAccelerator index plugin" OrthancTransfersAccelerator.dll 80 ${ORTHANC_PLUGIN_VERSION} "TransfersAccelerator index plugin" OrthancTransfers.dll
81 "TransfersAccelerator as a database back-end to Orthanc (index)" 81 "TransfersAccelerator as a database back-end to Orthanc (index)"
82 ERROR_VARIABLE Failure 82 ERROR_VARIABLE Failure
83 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc 83 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc
84 ) 84 )
85 85
117 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp 117 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
118 ) 118 )
119 119
120 120
121 121
122 add_library(OrthancTransfersAccelerator SHARED 122 add_library(OrthancTransfers SHARED
123 Plugin/Plugin.cpp 123 Plugin/Plugin.cpp
124 Plugin/PluginContext.cpp 124 Plugin/PluginContext.cpp
125 125
126 ${FRAMEWORK_SOURCES} 126 ${FRAMEWORK_SOURCES}
127 ${PLUGIN_RESOURCES} 127 ${PLUGIN_RESOURCES}
134 add_definitions( 134 add_definitions(
135 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}" 135 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}"
136 -DHAS_ORTHANC_EXCEPTION=1 136 -DHAS_ORTHANC_EXCEPTION=1
137 ) 137 )
138 138
139 set_target_properties(OrthancTransfersAccelerator PROPERTIES 139 set_target_properties(OrthancTransfers PROPERTIES
140 VERSION ${ORTHANC_PLUGIN_VERSION} 140 VERSION ${ORTHANC_PLUGIN_VERSION}
141 SOVERSION ${ORTHANC_PLUGIN_VERSION} 141 SOVERSION ${ORTHANC_PLUGIN_VERSION}
142 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 142 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
143 ) 143 )
144 144
145 install( 145 install(
146 TARGETS OrthancTransfersAccelerator 146 TARGETS OrthancTransfers
147 RUNTIME DESTINATION lib # Destination for Windows 147 RUNTIME DESTINATION lib # Destination for Windows
148 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux 148 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
149 ) 149 )
150 150
151 add_executable(UnitTests 151 add_executable(UnitTests