comparison CMakeLists.txt @ 3:52e041c8584a

resources for windows
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 Mar 2017 16:29:21 +0100
parents 7ee79efd8b3f
children 9db9659c627a bc49bd53a057
comparison
equal deleted inserted replaced
2:7ee79efd8b3f 3:52e041c8584a
61 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") 61 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
62 link_libraries(rt) 62 link_libraries(rt)
63 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") 63 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
64 execute_process( 64 execute_process(
65 COMMAND 65 COMMAND
66 ${PYTHON_EXECUTABLE} ${ORTHANC_ROOT}/Resources/WindowsResources.py 66 ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Resources/WindowsResources.py
67 ${ORTHANC_AUTHORIZATION_VERSION} "OrthancAuthorization" OrthancAuthorization.dll "Advanced authorization plugin for Orthanc" 67 ${ORTHANC_AUTHORIZATION_VERSION} "OrthancAuthorization" OrthancAuthorization.dll "Advanced authorization plugin for Orthanc"
68 ERROR_VARIABLE Failure 68 ERROR_VARIABLE Failure
69 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc 69 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc
70 ) 70 )
71 71
111 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp 111 ${ORTHANC_ROOT}/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp
112 112
113 ${BOOST_SOURCES} 113 ${BOOST_SOURCES}
114 ${SQLITE_SOURCES} 114 ${SQLITE_SOURCES}
115 ${JSONCPP_SOURCES} 115 ${JSONCPP_SOURCES}
116 ${AUTOGENERATED_SOURCES}
116 ) 117 )
117 118
118 119
119 message("Setting the version of the plugin to ${ORTHANC_AUTHORIZATION_VERSION}") 120 message("Setting the version of the plugin to ${ORTHANC_AUTHORIZATION_VERSION}")
120 add_definitions(-DORTHANC_AUTHORIZATION_VERSION="${ORTHANC_AUTHORIZATION_VERSION}") 121 add_definitions(-DORTHANC_AUTHORIZATION_VERSION="${ORTHANC_AUTHORIZATION_VERSION}")