Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (45 sloc) 2.547 kb
94baac2 @pibara Initial commit
authored
1 cmake_minimum_required(VERSION 2.6)
2 enable_testing()
3 project(jsonme)
4 set(prefix ${CMAKE_INSTALL_PREFIX})
5 set(exec_prefix ${CMAKE_INSTALL_PREFIX})
6 set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
7 set(includedir ${CMAKE_INSTALL_PREFIX}/include)
e491604 @robklpd Multiple updates for building on Ubuntu 10.04 LTS
robklpd authored
8 ADD_DEFINITIONS( -Wall -Werror -Weffc++ -Wctor-dtor-privacy -Wuninitialized -Winit-self -Wmissing-include-dirs -Wfloat-equal -Wshadow -Wpointer-arith )
8e7dc2b @pibara Made things compile with compiler flags set.
authored
9 ADD_DEFINITIONS(-DUSE_GOBJECT_JSON_LIB)
e491604 @robklpd Multiple updates for building on Ubuntu 10.04 LTS
robklpd authored
10 #Uncomment the following line for ubuntu 11.10, FIXME: use cmake properly to figure this out.
11 #ADD_DEFINITIONS( -I/usr/include/json-glib-1.0/ -I/usr/include/glib-2.0/ -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/)
12 #Uncomment the following line for ubuntu 10.04 LTS.
13 ADD_DEFINITIONS( -I/usr/include/json-glib-1.0/ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include )
c4fcc91 @pibara Fixed memleak and added keys functionality.
authored
14 add_library(jsonme SHARED JsonMeLib.cpp Scalar.cpp Node.cpp ParseError.cpp gobj/GobjectLibImpl.cpp gobj/GobjectImplParser.cpp gobj/GobjectImplFsTopNode.cpp gobj/GobjectImplStringTopNode.cpp gobj/GobjectImplError.cpp gobj/GobjectImplNode.cpp gobj/GobjectImplScalar.cpp gobj/GobjectImplKeys.cpp)
94baac2 @pibara Initial commit
authored
15 SET_TARGET_PROPERTIES(jsonme PROPERTIES VERSION 1.0.0 SOVERSION 1)
16 target_link_libraries(jsonme gobject-2.0 json-glib-1.0)
17 install_targets(/lib jsonme)
18 install(FILES json-me.hpp DESTINATION include)
86379de @pibara Added a bunch of tests, probably need more.
authored
19 add_executable(test_bogusstring tests/bogusstring.cpp)
20 target_link_libraries(test_bogusstring jsonme)
21 add_test(tests.bogusstring test_bogusstring)
22 add_executable(test_bogusfile tests/bogusfile.cpp)
23 target_link_libraries(test_bogusfile jsonme)
24 add_test(tests.bogusfile test_bogusfile)
25 add_executable(test_parsejsonstring tests/parsejsonstring.cpp)
26 target_link_libraries(test_parsejsonstring jsonme)
27 add_test(tests.parsejsonstring test_parsejsonstring)
28 add_executable(test_parsejsonfile tests/parsejsonfile.cpp)
29 target_link_libraries(test_parsejsonfile jsonme)
30 add_test(tests.parsejsonfile test_parsejsonfile)
31 add_executable(test_bogusnode tests/bogusnode.cpp)
32 target_link_libraries(test_bogusnode jsonme)
33 add_test(tests.bogusnode test_bogusnode)
34 add_executable(test_validnode tests/validnode.cpp)
35 target_link_libraries(test_validnode jsonme)
36 add_test(tests.validnode test_validnode)
37 add_executable(test_nodecount tests/nodecount.cpp)
38 target_link_libraries(test_nodecount jsonme)
39 add_test(tests.nodecount test_nodecount)
40 add_executable(test_value tests/value.cpp)
41 target_link_libraries(test_value jsonme)
42 add_test(tests.value test_value)
43 add_executable(test_keys tests/keys.cpp)
44 target_link_libraries(test_keys jsonme)
45 add_test(tests.keys test_keys)
Something went wrong with that request. Please try again.