Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/PugixmlConfiguration.cmake @ 4044:d25f4c0fa160 framework
splitting code into OrthancFramework and OrthancServer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 20:30:34 +0200 |
parents | Resources/CMake/PugixmlConfiguration.cmake@8d1ea00a990a |
children | 304842a0d152 |
comparison
equal
deleted
inserted
replaced
4043:6c6239aec462 | 4044:d25f4c0fa160 |
---|---|
1 if (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML) | |
2 set(PUGIXML_SOURCES_DIR ${CMAKE_BINARY_DIR}/pugixml-1.9) | |
3 set(PUGIXML_MD5 "7286ee2ed11376b6b780ced19fae0b64") | |
4 set(PUGIXML_URL "http://orthanc.osimis.io/ThirdPartyDownloads/pugixml-1.9.tar.gz") | |
5 | |
6 DownloadPackage(${PUGIXML_MD5} ${PUGIXML_URL} "${PUGIXML_SOURCES_DIR}") | |
7 | |
8 include_directories( | |
9 ${PUGIXML_SOURCES_DIR}/src | |
10 ) | |
11 | |
12 set(PUGIXML_SOURCES | |
13 #${PUGIXML_SOURCES_DIR}/src/vlog_is_on.cc | |
14 ${PUGIXML_SOURCES_DIR}/src/pugixml.cpp | |
15 ) | |
16 | |
17 source_group(ThirdParty\\pugixml REGULAR_EXPRESSION ${PUGIXML_SOURCES_DIR}/.*) | |
18 | |
19 else() | |
20 CHECK_INCLUDE_FILE_CXX(pugixml.hpp HAVE_PUGIXML_H) | |
21 if (NOT HAVE_PUGIXML_H) | |
22 message(FATAL_ERROR "Please install the libpugixml-dev package") | |
23 endif() | |
24 | |
25 link_libraries(pugixml) | |
26 endif() |