annotate Resources/CMake/JsonCppConfiguration.cmake @ 523:68451838fb2c dicom-rt

dicom-rt branch
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Aug 2013 15:10:05 +0200
parents f3d4193c571a
children 27d32fc6209a
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()
492
f3d4193c571a switch to jsoncpp-0.6.0-rc2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
11 SET(JSONCPP_SOURCES_DIR ${CMAKE_BINARY_DIR}/jsoncpp-src-0.6.0-rc2)
411
5f6d75cd4b46 md5 of third party downlaods
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 382
diff changeset
12 DownloadPackage(
492
f3d4193c571a switch to jsoncpp-0.6.0-rc2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
13 "363e2f4cbd3aeb63bf4e571f377400fb"
f3d4193c571a switch to jsoncpp-0.6.0-rc2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 411
diff changeset
14 "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jsoncpp-src-0.6.0-rc2.tar.gz"
411
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