xo-cmake: additions to README
This commit is contained in:
parent
1c648d70c3
commit
d99acc979d
1 changed files with 8 additions and 1 deletions
|
|
@ -12,10 +12,17 @@ Collects cmake macros to be shared across XO projects (e.g. indentlog, reflect,
|
|||
In some XO project `foo`:
|
||||
```
|
||||
$ cd build
|
||||
$ cmake -DCMAKE_MODULE_PATH=/usr/local/share/cmake ..
|
||||
$ PREFIX=/usr/local # or wherever you prefer
|
||||
$ cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
|
||||
$ make install
|
||||
```
|
||||
|
||||
then in `foo/CMakeLists.txt`:
|
||||
```
|
||||
include(xo_macros/xo_cxx)
|
||||
```
|
||||
|
||||
when configuring `foo`:
|
||||
```
|
||||
$ cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake path/to/foo
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue