annotate Resources/CMake/JsonCppConfiguration.cmake @ 137:0e97abc7b950

fix of a bug in older versions of sqlite
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Oct 2012 13:13:14 +0200
parents 52c7eb60bbc8
children b45bc565d82a 61ab5fa36754
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)
1267071a697e dynamic jsoncpp in debian unstable
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 8
diff changeset
12 DownloadPackage("http://downloads.sourceforge.net/project/jsoncpp/jsoncpp/0.5.0/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