# HG changeset patch # User Sebastien Jodogne # Date 1432914812 -7200 # Node ID 477e356146026a4d077233a39a1b3c17e2c4c34e # Parent b3119c32c920f083d7725197895feb1a1bb3e640 build ServeFolders as part of Orthanc diff -r b3119c32c920 -r 477e35614602 CMakeLists.txt --- a/CMakeLists.txt Fri May 29 17:32:00 2015 +0200 +++ b/CMakeLists.txt Fri May 29 17:53:32 2015 +0200 @@ -388,6 +388,23 @@ ##################################################################### +## Build the "ServeFolders" plugin +##################################################################### + +include(ExternalProject) +externalproject_add(ServeFolders + CMAKE_ARGS -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} -DSERVE_FOLDERS_VERSION:STRING=${ORTHANC_VERSION} -DALLOW_DOWNLOADS:BOOL=ON -DUSE_SYSTEM_JSONCPP:BOOL=${USE_SYSTEM_JSONCPP} -DCMAKE_INSTALL_PREFIX=Install + SOURCE_DIR ${CMAKE_SOURCE_DIR}/Plugins/Samples/ServeFolders + ) + +ExternalProject_Get_Property(ServeFolders binary_dir) +install( + DIRECTORY ${binary_dir}/Install/share/orthanc/plugins + DESTINATION share/orthanc + ) + + +##################################################################### ## Create the standalone DLL containing the Orthanc Client API #####################################################################