dev: export cmake compile commands
For LSP
This commit is contained in:
parent
68ec55e92e
commit
261b4dd97b
2 changed files with 2 additions and 1 deletions
2
.envrc
2
.envrc
|
|
@ -12,7 +12,7 @@ watch_file **/CMakeLists.txt
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
|
|
||||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DDISTRIBUTOR=direnv
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DDISTRIBUTOR=direnv
|
||||||
cmake --build build
|
cmake --build build
|
||||||
export CAELESTIA_LIB_DIR="$PWD/build/lib"
|
export CAELESTIA_LIB_DIR="$PWD/build/lib"
|
||||||
export QML2_IMPORT_PATH="$PWD/build/qml:${QML2_IMPORT_PATH:-}"
|
export QML2_IMPORT_PATH="$PWD/build/qml:${QML2_IMPORT_PATH:-}"
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
||||||
/result
|
/result
|
||||||
/.qmlls.ini
|
/.qmlls.ini
|
||||||
build/
|
build/
|
||||||
|
.cache/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue