comparison OrthancServer/Plugins/Samples/ConnectivityChecks/CMakeLists.txt @ 5257:0b183bb77c83

Avoid the use of "externalproject_add()" to build the sample plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Apr 2023 11:54:08 +0200
parents 0ea402b4d901
children fddb5d8d0021
comparison
equal deleted inserted replaced
5252:742448a9b600 5257:0b183bb77c83
48 list(APPEND ADDITIONAL_RESOURCES ${AUTOGENERATED_DIR}/ConnectivityChecks.rc) 48 list(APPEND ADDITIONAL_RESOURCES ${AUTOGENERATED_DIR}/ConnectivityChecks.rc)
49 endif() 49 endif()
50 50
51 EmbedResources( 51 EmbedResources(
52 --framework-path=${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources 52 --framework-path=${CMAKE_SOURCE_DIR}/../../../../OrthancFramework/Sources
53 --target=ConnectivityChecksResources
53 WEB_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/WebResources 54 WEB_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/WebResources
54 LIBRARIES ${JAVASCRIPT_LIBS_DIR} 55 LIBRARIES ${CONNECTIVITY_CHECKS_JAVASCRIPT_DIR}
55 ) 56 )
56 57
57 add_definitions( 58 add_definitions(
58 -DHAS_ORTHANC_EXCEPTION=1 59 -DHAS_ORTHANC_EXCEPTION=1
59 -DORTHANC_PLUGIN_NAME="${PLUGIN_NAME}" 60 -DORTHANC_PLUGIN_NAME="${PLUGIN_NAME}"