Mercurial > hg > orthanc
annotate Resources/CMake/PugixmlConfiguration.cmake @ 3376:56ea9c476dba
new error code for Stone: BadGeometry
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 May 2019 16:30:24 +0200 |
parents | 8d1ea00a990a |
children |
rev | line source |
---|---|
2379
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
1 if (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML) |
3288
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3133
diff
changeset
|
2 set(PUGIXML_SOURCES_DIR ${CMAKE_BINARY_DIR}/pugixml-1.9) |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3133
diff
changeset
|
3 set(PUGIXML_MD5 "7286ee2ed11376b6b780ced19fae0b64") |
8d1ea00a990a
upgrade to pugixml 1.9
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3133
diff
changeset
|
4 set(PUGIXML_URL "http://orthanc.osimis.io/ThirdPartyDownloads/pugixml-1.9.tar.gz") |
1045
0bfeeb6d340f
json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 |
2379
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
6 DownloadPackage(${PUGIXML_MD5} ${PUGIXML_URL} "${PUGIXML_SOURCES_DIR}") |
1045
0bfeeb6d340f
json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 |
2379
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
8 include_directories( |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
9 ${PUGIXML_SOURCES_DIR}/src |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
10 ) |
1045
0bfeeb6d340f
json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 |
2379
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
12 set(PUGIXML_SOURCES |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
13 #${PUGIXML_SOURCES_DIR}/src/vlog_is_on.cc |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
14 ${PUGIXML_SOURCES_DIR}/src/pugixml.cpp |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
15 ) |
1045
0bfeeb6d340f
json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 |
2113
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1537
diff
changeset
|
17 source_group(ThirdParty\\pugixml REGULAR_EXPRESSION ${PUGIXML_SOURCES_DIR}/.*) |
0108ac01fc8e
added source_group directives for MSVC
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1537
diff
changeset
|
18 |
1045
0bfeeb6d340f
json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 else() |
2379
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
20 CHECK_INCLUDE_FILE_CXX(pugixml.hpp HAVE_PUGIXML_H) |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
21 if (NOT HAVE_PUGIXML_H) |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
22 message(FATAL_ERROR "Please install the libpugixml-dev package") |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
23 endif() |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
24 |
4900688827a8
reorganization in CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2186
diff
changeset
|
25 link_libraries(pugixml) |
1045
0bfeeb6d340f
json to xml conversion with pugixml
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 endif() |