Mercurial > hg > orthanc-python
comparison CMakeLists.txt @ 171:c8de83fe7faa
removed deprecation warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Jun 2024 15:52:51 +0200 |
parents | fcce093788a8 |
children | ddf3e987827f |
comparison
equal
deleted
inserted
replaced
170:b49eeb36cd0d | 171:c8de83fe7faa |
---|---|
194 ${BOOST_SOURCES} | 194 ${BOOST_SOURCES} |
195 ${JSONCPP_SOURCES} | 195 ${JSONCPP_SOURCES} |
196 ${WINDOWS_RESOURCES} | 196 ${WINDOWS_RESOURCES} |
197 ) | 197 ) |
198 | 198 |
199 if (CMAKE_COMPILER_IS_GNUCXX) | |
200 # Don't report warnings about deprecated functions in the Orthanc SDK | |
201 set_source_files_properties( | |
202 Sources/Autogenerated/sdk.cpp | |
203 PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations) | |
204 endif() | |
205 | |
199 target_link_libraries(OrthancPython ${PYTHON_LIBRARIES}) | 206 target_link_libraries(OrthancPython ${PYTHON_LIBRARIES}) |
200 | 207 |
201 add_definitions( | 208 add_definitions( |
202 -DPLUGIN_NAME="python" | 209 -DPLUGIN_NAME="python" |
203 -DPLUGIN_VERSION="${PLUGIN_VERSION}" | 210 -DPLUGIN_VERSION="${PLUGIN_VERSION}" |
211 install( | 218 install( |
212 TARGETS OrthancPython | 219 TARGETS OrthancPython |
213 RUNTIME DESTINATION lib # Destination for Windows | 220 RUNTIME DESTINATION lib # Destination for Windows |
214 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | 221 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
215 ) | 222 ) |
223 | |
224 if (COMMAND DefineSourceBasenameForTarget) | |
225 DefineSourceBasenameForTarget(OrthancPython) | |
226 endif() |