comparison Applications/Samples/RtViewerPlugin/CMakeLists.txt @ 1877:a2955abe4c2e

skeleton for the RenderingPlugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jan 2022 08:23:38 +0100
parents 7053b8a0aaec
children c73e696967b0
comparison
equal deleted inserted replaced
1876:b1f510e601d2 1877:a2955abe4c2e
75 75
76 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake) 76 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
77 include_directories(${ORTHANC_FRAMEWORK_ROOT}) 77 include_directories(${ORTHANC_FRAMEWORK_ROOT})
78 endif() 78 endif()
79 79
80 include(${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) 80 include(${CMAKE_SOURCE_DIR}/../../../RenderingPlugin/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake)
81 81
82 82
83 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) 83 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK)
84 include_directories(${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Sdk-1.0.0) 84 include_directories(${CMAKE_SOURCE_DIR}/../../../RenderingPlugin/Resources/Orthanc/Sdk-1.0.0)
85 else () 85 else ()
86 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H) 86 CHECK_INCLUDE_FILE_CXX(orthanc/OrthancCPlugin.h HAVE_ORTHANC_H)
87 if (NOT HAVE_ORTHANC_H) 87 if (NOT HAVE_ORTHANC_H)
88 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") 88 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK")
89 endif() 89 endif()
113 ) 113 )
114 114
115 add_library(RtViewerPlugin SHARED 115 add_library(RtViewerPlugin SHARED
116 Plugin.cpp 116 Plugin.cpp
117 ${AUTOGENERATED_SOURCES} 117 ${AUTOGENERATED_SOURCES}
118 ${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp 118 ${CMAKE_SOURCE_DIR}/../../../RenderingPlugin/Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp
119 ${ORTHANC_CORE_SOURCES} 119 ${ORTHANC_CORE_SOURCES}
120 ) 120 )
121 121
122 set_target_properties(RtViewerPlugin PROPERTIES 122 set_target_properties(RtViewerPlugin PROPERTIES
123 VERSION ${ORTHANC_PLUGIN_VERSION} 123 VERSION ${ORTHANC_PLUGIN_VERSION}