xdgcfg
0.4.0
|
xdgcfg is a very simple wrapper around libconfig written in C++. It reads and writes files in ${XDG_CONFIG_HOME}
. It creates subdirectories if necessary.
xdgcfg.hpp
has explanatory comments in it and there is an example. The reference is also available at doc.schlomp.space/xdgcfg/.
Use it in your CMake project like this:
If you don't use CMake, you can get the compile-flags with pkg-config:
Add my repository and install it from there.
-DWITH_TESTS=YES
to compile the tests.-DWITH_EXAMPLES=YES
to compile the example.-DBUILD_SHARED_LIBS=NO
to build a static library.