Mercurial > hg > orthanc
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 |
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 | 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 | 12 DownloadPackage("http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/jsoncpp-src-0.5.0.tar.gz" "${JSONCPP_SOURCES_DIR}" "" "") |
8 | 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 | 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 | 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 |