comparison ViewerPlugin/CMakeLists.txt @ 205:a8f25caebc07

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Aug 2020 13:29:52 +0200
parents 9d3ffcc402a9
children 3d457e61a88c
comparison
equal deleted inserted replaced
204:9d3ffcc402a9 205:a8f25caebc07
86 link_libraries(rt) 86 link_libraries(rt)
87 87
88 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 88 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
89 execute_process( 89 execute_process(
90 COMMAND 90 COMMAND
91 ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/Resources/WindowsResources.py 91 ${PYTHON_EXECUTABLE} ${ORTHANC_FRAMEWORK_ROOT}/../Resources/WindowsResources.py
92 ${ORTHANC_WSI_VERSION} "OrthancWSI" OrthancWSI.dll "Whole-slide imaging plugin for Orthanc" 92 ${ORTHANC_WSI_VERSION} "OrthancWSI" OrthancWSI.dll "Whole-slide imaging plugin for Orthanc"
93 ERROR_VARIABLE Failure 93 ERROR_VARIABLE Failure
94 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc 94 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc
95 ) 95 )
96 96
179 179
180 if (MSVC) 180 if (MSVC)
181 add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1) 181 add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1)
182 182
183 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS( 183 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
184 "PrecompiledHeaders.h" "${ORTHANC_FRAMEWORK_ROOT}/Sources/PrecompiledHeaders.cpp" 184 "PrecompiledHeaders.h" "${ORTHANC_FRAMEWORK_ROOT}/PrecompiledHeaders.cpp"
185 ORTHANC_CORE_SOURCES_INTERNAL ORTHANC_CORE_PCH) 185 ORTHANC_CORE_SOURCES_INTERNAL ORTHANC_CORE_PCH)
186 186
187 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS( 187 ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS(
188 "PrecompiledHeadersWSI.h" "${ORTHANC_WSI_DIR}/Framework/PrecompiledHeadersWSI.cpp" 188 "PrecompiledHeadersWSI.h" "${ORTHANC_WSI_DIR}/Framework/PrecompiledHeadersWSI.cpp"
189 ORTHANC_WSI_SOURCES ORTHANC_WSI_PCH) 189 ORTHANC_WSI_SOURCES ORTHANC_WSI_PCH)