annotate Resources/CMake/PugixmlConfiguration.cmake @ 1432:0ac74fa21db8

rename IServerIndexListener as IDatabaseListener
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2015 12:51:29 +0200
parents 0a67a502c90f
children fbf763bb1fa3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1045
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 if (USE_PUGIXML)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 add_definitions(-DORTHANC_PUGIXML_ENABLED=1)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 if (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 set(PUGIXML_SOURCES_DIR ${CMAKE_BINARY_DIR}/pugixml-1.4)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 DownloadPackage(
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 "7c56c91cfe3ecdee248a8e4892ef5781"
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/pugixml-1.4.tar.gz"
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 "${PUGIXML_SOURCES_DIR}")
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 include_directories(
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 ${PUGIXML_SOURCES_DIR}/src
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 )
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 set(PUGIXML_SOURCES
1414
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1077
diff changeset
17 #${PUGIXML_SOURCES_DIR}/src/vlog_is_on.cc
1045
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 ${PUGIXML_SOURCES_DIR}/src/pugixml.cpp
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 )
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 else()
1077
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1045
diff changeset
22 CHECK_INCLUDE_FILE_CXX(pugixml.hpp HAVE_PUGIXML_H)
1045
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 if (NOT HAVE_PUGIXML_H)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 message(FATAL_ERROR "Please install the libpugixml-dev package")
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 endif()
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 link_libraries(pugixml)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 endif()
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 else()
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 add_definitions(-DORTHANC_PUGIXML_ENABLED=0)
0bfeeb6d340f json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 endif()