annotate OrthancServer/Plugins/Samples/ConnectivityChecks/CMakeLists.txt @ 4538:8a7523da6a9b

added SystemToolbox::GetMacAddresses()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Mar 2021 14:06:10 +0100
parents d9473bd5ed43
children 7053502fbf97
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4123
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
3 # Department, University Hospital of Liege, Belgium
4437
d9473bd5ed43 upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4305
diff changeset
4 # Copyright (C) 2017-2021 Osimis S.A., Belgium
4123
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
5 #
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
6 # This program is free software: you can redistribute it and/or
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
7 # modify it under the terms of the GNU General Public License as
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
8 # published by the Free Software Foundation, either version 3 of the
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
9 # License, or (at your option) any later version.
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
10 #
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
11 # This program is distributed in the hope that it will be useful, but
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
14 # General Public License for more details.
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
15 #
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
16 # You should have received a copy of the GNU General Public License
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
18
3d6ee570cfb2 adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4099
diff changeset
19
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 cmake_minimum_required(VERSION 2.8)
4171
822d3a17d797 better fix for CMP0058
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4123
diff changeset
21 cmake_policy(SET CMP0058 NEW)
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 project(ConnectivityChecks)
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 SET(PLUGIN_NAME "connectivity-checks" CACHE STRING "Name of the plugin")
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 SET(PLUGIN_VERSION "mainline" CACHE STRING "Version of the plugin")
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27
4045
05b8fd21089c fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
28 include(${CMAKE_CURRENT_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkParameters.cmake)
05b8fd21089c fix path
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4044
diff changeset
29 include(${CMAKE_CURRENT_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake)
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 include(JavaScriptLibraries.cmake)
4099
bf1a17f12306 moving version scripts from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4050
diff changeset
32 include(${CMAKE_CURRENT_LIST_DIR}/../Common/OrthancPluginsExports.cmake)
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 execute_process(
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 COMMAND
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
37 ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Resources/WindowsResources.py
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 ${PLUGIN_VERSION} ConnectivityChecks ConnectivityChecks.dll "Orthanc plugin to serve additional folders"
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 ERROR_VARIABLE Failure
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 OUTPUT_FILE ${AUTOGENERATED_DIR}/ConnectivityChecks.rc
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 )
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 if (Failure)
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 message(FATAL_ERROR "Error while computing the version information: ${Failure}")
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 endif()
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 list(APPEND ADDITIONAL_RESOURCES ${AUTOGENERATED_DIR}/ConnectivityChecks.rc)
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 endif()
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 EmbedResources(
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
51 --framework-path=${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 WEB_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/WebResources
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 LIBRARIES ${JAVASCRIPT_LIBS_DIR}
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 )
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 add_definitions(
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 -DHAS_ORTHANC_EXCEPTION=1
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 -DORTHANC_PLUGIN_NAME="${PLUGIN_NAME}"
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 -DORTHANC_PLUGIN_VERSION="${PLUGIN_VERSION}"
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 )
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 include_directories(
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
63 ${CMAKE_SOURCE_DIR}/../../Include/
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 )
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65
3624
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3623
diff changeset
66 add_library(ConnectivityChecks SHARED
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 ${ADDITIONAL_RESOURCES}
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 ${AUTOGENERATED_SOURCES}
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 ${ORTHANC_CORE_SOURCES_DEPENDENCIES}
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
70 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Enumerations.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
71 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Logging.cpp
4305
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4171
diff changeset
72 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/OrthancException.cpp
4050
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
73 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/SystemToolbox.cpp
cd363608551a fix paths
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 4045
diff changeset
74 ${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources/Toolbox.cpp
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 Plugin.cpp
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 )
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 set_target_properties(
3624
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3623
diff changeset
79 ConnectivityChecks PROPERTIES
3622
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 VERSION ${PLUGIN_VERSION}
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 SOVERSION ${PLUGIN_VERSION}
8afc14fab01f New sample plugin: ConnectivityChecks
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 )
3623
a6bfa09df8b3 fix for cis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3622
diff changeset
83
a6bfa09df8b3 fix for cis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3622
diff changeset
84 install(
3624
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3623
diff changeset
85 TARGETS ConnectivityChecks
3623
a6bfa09df8b3 fix for cis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3622
diff changeset
86 DESTINATION .
a6bfa09df8b3 fix for cis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 3622
diff changeset
87 )