Mercurial > hg > orthanc
view Resources/CMake/PugixmlConfiguration.cmake @ 3102:9b18c8d4d459
'fix' for Orthanc issue #21: added a select file button + a warning specific for Firefox users
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 10 Jan 2019 10:10:26 +0100 |
parents | 74d0953a3681 |
children | 0c2a8d5e0097 |
line wrap: on
line source
if (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML) set(PUGIXML_SOURCES_DIR ${CMAKE_BINARY_DIR}/pugixml-1.4) set(PUGIXML_MD5 "7c56c91cfe3ecdee248a8e4892ef5781") set(PUGIXML_URL "http://www.orthanc-server.com/downloads/third-party/pugixml-1.4.tar.gz") DownloadPackage(${PUGIXML_MD5} ${PUGIXML_URL} "${PUGIXML_SOURCES_DIR}") include_directories( ${PUGIXML_SOURCES_DIR}/src ) set(PUGIXML_SOURCES #${PUGIXML_SOURCES_DIR}/src/vlog_is_on.cc ${PUGIXML_SOURCES_DIR}/src/pugixml.cpp ) source_group(ThirdParty\\pugixml REGULAR_EXPRESSION ${PUGIXML_SOURCES_DIR}/.*) else() CHECK_INCLUDE_FILE_CXX(pugixml.hpp HAVE_PUGIXML_H) if (NOT HAVE_PUGIXML_H) message(FATAL_ERROR "Please install the libpugixml-dev package") endif() link_libraries(pugixml) endif()