05 марта 2011

Qt application settings in JSON

Class for storing Qt Application settings into JSON file.

Based on QLALR-based JSON parser by Girish Ramakrishnan. Many thanks to him for it.
QLALR JSON parser:
http://git.forwardbias.in/?p=qjsonparser.git

Download from gitorious
git clone --depth 1 http://git.gitorious.org/qtjsonsettings/qtjsonsettings.git

Using

CMake
Compiled as static library
add_subdirectory(~/projects/qtjsonsettings ${CMAKE_CURRENT_BINARY_DIR}/qtjsonsettings)
include_directories(~/projects/qtjsonsettings) 

target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES} 
qtjsonsettings)

QMake
Included as sources
include(~/projects/qtjsonsetting/qtjsonsettings.pri)

Комментариев нет:

Отправить комментарий