annotate Resources/CMake/JsonCppConfiguration.cmake @ 484:b8ace6fc1d1f

preparation for handling Orthanc peers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 16 Jul 2013 12:51:27 +0200
parents 5f6d75cd4b46
children f3d4193c571a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
1 if (USE_DYNAMIC_JSONCPP)
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
2 CHECK_INCLUDE_FILE_CXX(jsoncpp/json/reader.h HAVE_JSONCPP_H)
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
3 if (NOT HAVE_JSONCPP_H)
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
4 message(FATAL_ERROR "Please install the libjsoncpp-dev package")
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
5 endif()
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
6
126
52c7eb60bbc8 jsoncpp fixes
jodogne
parents: 124
diff changeset
7 include_directories(/usr/include/jsoncpp)
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
8 link_libraries(jsoncpp)
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
9
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
10 else()
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
11 SET(JSONCPP_SOURCES_DIR ${CMAKE_BINARY_DIR}/jsoncpp-src-0.5.0)
411
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
12 DownloadPackage(
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
13 "24482b67c1cb17aac1ed1814288a3a8f"
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
14 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jsoncpp-src-0.5.0.tar.gz"
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
15 "${JSONCPP_SOURCES_DIR}" "" "")
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
16
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
17 list(APPEND THIRD_PARTY_SOURCES
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
18 ${JSONCPP_SOURCES_DIR}/src/lib_json/json_reader.cpp
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
19 ${JSONCPP_SOURCES_DIR}/src/lib_json/json_value.cpp
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
20 ${JSONCPP_SOURCES_DIR}/src/lib_json/json_writer.cpp
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
21 )
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
22
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
23 include_directories(
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
24 ${JSONCPP_SOURCES_DIR}/include
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
25 )
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
26
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
27 source_group(ThirdParty\\JsonCpp REGULAR_EXPRESSION ${JSONCPP_SOURCES_DIR}/.*)
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
28 endif()
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
29