Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Samples/ConnectivityChecks/CMakeLists.txt @ 4045:05b8fd21089c framework
fix path
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 21:27:31 +0200 |
parents | d25f4c0fa160 |
children | cd363608551a |
comparison
equal
deleted
inserted
replaced
4044:d25f4c0fa160 | 4045:05b8fd21089c |
---|---|
3 project(ConnectivityChecks) | 3 project(ConnectivityChecks) |
4 | 4 |
5 SET(PLUGIN_NAME "connectivity-checks" CACHE STRING "Name of the plugin") | 5 SET(PLUGIN_NAME "connectivity-checks" CACHE STRING "Name of the plugin") |
6 SET(PLUGIN_VERSION "mainline" CACHE STRING "Version of the plugin") | 6 SET(PLUGIN_VERSION "mainline" CACHE STRING "Version of the plugin") |
7 | 7 |
8 include(${CMAKE_CURRENT_SOURCE_DIR}/../../../Resources/CMake/OrthancFrameworkParameters.cmake) | 8 include(${CMAKE_CURRENT_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkParameters.cmake) |
9 include(${CMAKE_CURRENT_SOURCE_DIR}/../../../Resources/CMake/OrthancFrameworkConfiguration.cmake) | 9 include(${CMAKE_CURRENT_SOURCE_DIR}/../../../../OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake) |
10 | 10 |
11 include(JavaScriptLibraries.cmake) | 11 include(JavaScriptLibraries.cmake) |
12 | 12 |
13 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 13 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
14 execute_process( | 14 execute_process( |
25 | 25 |
26 list(APPEND ADDITIONAL_RESOURCES ${AUTOGENERATED_DIR}/ConnectivityChecks.rc) | 26 list(APPEND ADDITIONAL_RESOURCES ${AUTOGENERATED_DIR}/ConnectivityChecks.rc) |
27 endif() | 27 endif() |
28 | 28 |
29 EmbedResources( | 29 EmbedResources( |
30 --framework-path=${CMAKE_CURRENT_SOURCE_DIR}/../../../Core | 30 --framework-path=${ORTHANC_ROOT}/OrthancFramework/Sources |
31 WEB_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/WebResources | 31 WEB_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/WebResources |
32 LIBRARIES ${JAVASCRIPT_LIBS_DIR} | 32 LIBRARIES ${JAVASCRIPT_LIBS_DIR} |
33 ) | 33 ) |
34 | 34 |
35 add_definitions( | 35 add_definitions( |
37 -DORTHANC_PLUGIN_NAME="${PLUGIN_NAME}" | 37 -DORTHANC_PLUGIN_NAME="${PLUGIN_NAME}" |
38 -DORTHANC_PLUGIN_VERSION="${PLUGIN_VERSION}" | 38 -DORTHANC_PLUGIN_VERSION="${PLUGIN_VERSION}" |
39 ) | 39 ) |
40 | 40 |
41 include_directories( | 41 include_directories( |
42 ${ORTHANC_ROOT}/Plugins/Include/ | 42 ${ORTHANC_ROOT}/OrthancServer/Plugins/Include/ |
43 ) | 43 ) |
44 | 44 |
45 add_library(ConnectivityChecks SHARED | 45 add_library(ConnectivityChecks SHARED |
46 ${ADDITIONAL_RESOURCES} | 46 ${ADDITIONAL_RESOURCES} |
47 ${AUTOGENERATED_SOURCES} | 47 ${AUTOGENERATED_SOURCES} |
48 ${ORTHANC_CORE_SOURCES_DEPENDENCIES} | 48 ${ORTHANC_CORE_SOURCES_DEPENDENCIES} |
49 ${ORTHANC_ROOT}/Core/Enumerations.cpp | 49 ${ORTHANC_ROOT}/OrthancFramework/Sources/Enumerations.cpp |
50 ${ORTHANC_ROOT}/Core/Logging.cpp | 50 ${ORTHANC_ROOT}/OrthancFramework/Sources/Logging.cpp |
51 ${ORTHANC_ROOT}/Core/SystemToolbox.cpp | 51 ${ORTHANC_ROOT}/OrthancFramework/Sources/SystemToolbox.cpp |
52 ${ORTHANC_ROOT}/Core/Toolbox.cpp | 52 ${ORTHANC_ROOT}/OrthancFramework/Sources/Toolbox.cpp |
53 Plugin.cpp | 53 Plugin.cpp |
54 ) | 54 ) |
55 | 55 |
56 set_target_properties( | 56 set_target_properties( |
57 ConnectivityChecks PROPERTIES | 57 ConnectivityChecks PROPERTIES |