comparison CMakeLists.txt @ 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 b22ba8c5edbe
children 56f613d1df29
comparison
equal deleted inserted replaced
1391:b3119c32c920 1392:477e35614602
386 endif() 386 endif()
387 387
388 388
389 389
390 ##################################################################### 390 #####################################################################
391 ## Build the "ServeFolders" plugin
392 #####################################################################
393
394 include(ExternalProject)
395 externalproject_add(ServeFolders
396 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
397 SOURCE_DIR ${CMAKE_SOURCE_DIR}/Plugins/Samples/ServeFolders
398 )
399
400 ExternalProject_Get_Property(ServeFolders binary_dir)
401 install(
402 DIRECTORY ${binary_dir}/Install/share/orthanc/plugins
403 DESTINATION share/orthanc
404 )
405
406
407 #####################################################################
391 ## Create the standalone DLL containing the Orthanc Client API 408 ## Create the standalone DLL containing the Orthanc Client API
392 ##################################################################### 409 #####################################################################
393 410
394 if (BUILD_CLIENT_LIBRARY) 411 if (BUILD_CLIENT_LIBRARY)
395 include_directories(${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/Laaw) 412 include_directories(${ORTHANC_ROOT}/OrthancCppClient/SharedLibrary/Laaw)