Wrapper around libconfig that writes and reads files in XDG_CONFIG_HOME.
src | ||
tests | ||
.drone.yml | ||
.gitignore | ||
CMakeLists.txt | ||
Doxyfile | ||
generate_doc.sh | ||
README.md |
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.
Dependencies
- C++ compiler (Tested: g++ 5/8)
- cmake (at least: 3.1)
- pkgconfig
- libconfig++
- libxdg-basedir
Install
Copy xdgcfg.hpp
into a folder where your project can find it.
mkdir build
cd build
cmake ..
make
make install
CMake options
-DWITH_TESTS=YES
to compile the tests.-DWITH_EXAMPLES=YES
to compile the example.
Documentation
xdgcfg.hpp
has explanatory comments in it and there is an
example. The reference is also available at
doc.schlomp.space/xdgcfg/.