Mercurial > hg > orthanc
changeset 1392:477e35614602
build ServeFolders as part of Orthanc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 May 2015 17:53:32 +0200 |
parents | b3119c32c920 |
children | 56f613d1df29 |
files | CMakeLists.txt |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 #####################################################################