annotate Resources/CMake/JsonCppConfiguration.cmake @ 388:466c992a9a42 lua-scripting

testing filters inside orthanc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Apr 2013 17:30:38 +0200
parents b45bc565d82a
children 5f6d75cd4b46
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)
382
b45bc565d82a cmake for lua
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 126
diff changeset
12 DownloadPackage("http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jsoncpp-src-0.5.0.tar.gz" "${JSONCPP_SOURCES_DIR}" "" "")
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
13
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
14 list(APPEND THIRD_PARTY_SOURCES
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
15 ${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
16 ${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
17 ${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
18 )
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
19
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
20 include_directories(
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
21 ${JSONCPP_SOURCES_DIR}/include
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
22 )
8
3a584803783e build with visual studio
jodogne
parents: 0
diff changeset
23
124
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
24 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
25 endif()
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
26