Simple cmake example with working ccls

This commit is contained in:
2025-02-04 13:44:55 +01:00
commit 89361cc735
6 changed files with 56 additions and 0 deletions

13
justfile Normal file
View File

@@ -0,0 +1,13 @@
default: run
build:
mkdir -p build && cd build && cmake .. && cmake --build .
run: build
cd build && ./MyProject
ccls:
mkdir -p build && cd build && cmake .. && cd .. && ln -s build/compile_commands.json .
clean:
rm -rf build && rm compile_commands.json