Added CMake options to the readme.
This commit is contained in:
parent
e07a6ab6cb
commit
4b3ececa13
13
README.md
13
README.md
|
@ -2,15 +2,15 @@
|
||||||
and writes files in `${XDG_CONFIG_HOME}`. It creates subdirectories if
|
and writes files in `${XDG_CONFIG_HOME}`. It creates subdirectories if
|
||||||
necessary.
|
necessary.
|
||||||
|
|
||||||
### Dependencies
|
## Dependencies
|
||||||
|
|
||||||
* C++ compiler (Tested: g++ 5/8)
|
* C++ compiler (Tested: g++ 5/8)
|
||||||
* [cmake](https://cmake.org/)
|
* [cmake](https://cmake.org/) (at least: 3.1)
|
||||||
* [pkgconfig](https://pkgconfig.freedesktop.org/wiki/)
|
* [pkgconfig](https://pkgconfig.freedesktop.org/wiki/)
|
||||||
* [libconfig++](https://github.com/hyperrealm/libconfig)
|
* [libconfig++](https://github.com/hyperrealm/libconfig)
|
||||||
* [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git)
|
* [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git)
|
||||||
|
|
||||||
### Usage
|
## Install
|
||||||
|
|
||||||
Copy `xdgcfg.hpp` into a folder where your project can find it.
|
Copy `xdgcfg.hpp` into a folder where your project can find it.
|
||||||
|
|
||||||
|
@ -22,8 +22,13 @@ make
|
||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### CMake options
|
||||||
|
|
||||||
### Documentation
|
* `-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
|
`xdgcfg.hpp` has explanatory comments in it and there is an
|
||||||
[example](src/example.cpp). The reference is also available at
|
[example](src/example.cpp). The reference is also available at
|
||||||
|
|
Reference in New Issue
Block a user