document compile_commands.json symlink + .gitignore
This commit is contained in:
parent
6be9037f10
commit
c8280cb8c4
2 changed files with 10 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@
|
|||
.cache
|
||||
# typical cmake build directory (source-tree-nephew)
|
||||
build*/*
|
||||
# symlink to builddir/compile_commands.json; should be set manually in dev sandbox
|
||||
compile_commands.json
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
$ cd reflect
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ INSTALL_PREFIX=/usr/local # or wherever you prefer
|
||||
$ cmake -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} ..
|
||||
$ make
|
||||
$ make install
|
||||
|
|
@ -12,8 +13,14 @@ $ make install
|
|||
|
||||
### build for unit test coverage
|
||||
```
|
||||
$ cd refcnt
|
||||
$ cd xo-reflect
|
||||
$ mkdir build-ccov
|
||||
$ cd build-ccov
|
||||
$ cmake -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ..
|
||||
```
|
||||
|
||||
### LSP support
|
||||
```
|
||||
$ cd xo-reflect
|
||||
$ ln -s build/compile_commands.json # lsp will look for compile_commands.json in the root of the source tree
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue