view Resources/CMake/PlustacheConfiguration.cmake @ 825:d8f5de5b9517 templating

partials
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 May 2014 17:54:59 +0200
parents da4c30a8bcdd
children a93867a94011
line wrap: on
line source

set(PLUSTACHE_SOURCES_DIR ${CMAKE_BINARY_DIR}/plustache-0.3.0)
DownloadPackage(
  "6162946bdb3dccf3b2185fcf149671ee"
  "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/plustache-0.3.0.tar.gz"
  "${PLUSTACHE_SOURCES_DIR}")

list(APPEND THIRD_PARTY_SOURCES
  ${PLUSTACHE_SOURCES_DIR}/src/context.cpp
  ${PLUSTACHE_SOURCES_DIR}/src/template.cpp
  )

include_directories(
  ${PLUSTACHE_SOURCES_DIR}
  )

execute_process(
  COMMAND patch -p0 -i ${CMAKE_SOURCE_DIR}/Resources/CMake/PlustacheConfiguration.patch
  WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
  )

source_group(ThirdParty\\Plustache REGULAR_EXPRESSION ${PLUSTACHE_SOURCES_DIR}/.*)