Mercurial > hg > orthanc
comparison Resources/CMake/GoogleLogConfiguration.cmake @ 983:80d4f1618b33 plugins
Sample plugin to replace DCMTK by GDCM when decoding images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Jul 2014 12:01:58 +0200 |
parents | 29174c7b4631 |
children | f25c79497739 |
comparison
equal
deleted
inserted
replaced
982:5983e59ac670 | 983:80d4f1618b33 |
---|---|
63 ) | 63 ) |
64 | 64 |
65 if (CMAKE_COMPILER_IS_GNUCXX) | 65 if (CMAKE_COMPILER_IS_GNUCXX) |
66 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | 66 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") |
67 execute_process( | 67 execute_process( |
68 COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities-lsb.diff | 68 COMMAND patch utilities.cc ${ORTHANC_ROOT}/Resources/Patches/glog-utilities-lsb.diff |
69 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src | 69 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src |
70 ) | 70 ) |
71 else() | 71 else() |
72 execute_process( | 72 execute_process( |
73 COMMAND patch utilities.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-utilities.diff | 73 COMMAND patch utilities.cc ${ORTHANC_ROOT}/Resources/Patches/glog-utilities.diff |
74 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src | 74 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src |
75 ) | 75 ) |
76 endif() | 76 endif() |
77 | 77 |
78 execute_process( | 78 execute_process( |
79 COMMAND patch port.h ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-port-h.diff | 79 COMMAND patch port.h ${ORTHANC_ROOT}/Resources/Patches/glog-port-h.diff |
80 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows | 80 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows |
81 ) | 81 ) |
82 execute_process( | 82 execute_process( |
83 COMMAND patch port.cc ${CMAKE_SOURCE_DIR}/Resources/Patches/glog-port-cc.diff | 83 COMMAND patch port.cc ${ORTHANC_ROOT}/Resources/Patches/glog-port-cc.diff |
84 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows | 84 WORKING_DIRECTORY ${GOOGLE_LOG_SOURCES_DIR}/src/windows |
85 ) | 85 ) |
86 endif() | 86 endif() |
87 | 87 |
88 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 88 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
89 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR | 89 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR |
90 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") | 90 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD") |
91 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | 91 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") |
92 # Install the specific configuration for LSB SDK | 92 # Install the specific configuration for LSB SDK |
93 configure_file( | 93 configure_file( |
94 ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfigurationLSB.h | 94 ${ORTHANC_ROOT}/Resources/CMake/GoogleLogConfigurationLSB.h |
95 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h | 95 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h |
96 COPYONLY) | 96 COPYONLY) |
97 elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") | 97 elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") |
98 # Install the specific configuration for Mac OS | 98 # Install the specific configuration for Mac OS |
99 configure_file( | 99 configure_file( |
100 ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfigurationDarwin.h | 100 ${ORTHANC_ROOT}/Resources/CMake/GoogleLogConfigurationDarwin.h |
101 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h | 101 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h |
102 COPYONLY) | 102 COPYONLY) |
103 else() | 103 else() |
104 configure_file( | 104 configure_file( |
105 ${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleLogConfiguration.h | 105 ${ORTHANC_ROOT}/Resources/CMake/GoogleLogConfiguration.h |
106 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h | 106 ${GOOGLE_LOG_SOURCES_DIR}/src/config.h |
107 COPYONLY) | 107 COPYONLY) |
108 endif() | 108 endif() |
109 | 109 |
110 set(GOOGLE_LOG_SOURCES | 110 set(GOOGLE_LOG_SOURCES |