-
Install Conan package manager.
-
To build. The binary is
build/Debug/main.
make build-debug- If you need
compile_commands.jsonfor LSP or similar, it is located inbuild/Debug/compile_commands.jsonand is regenerated when CMake is configured. Clangd's default search path of it is.and./build, so I propose create a symlink to the file:
ln -s Debug/compile_commands.json build/compile_commands.json- To run GDB to debug the application use shortcut:
make gdbIt's better to use Dockerfile. If you need to build locally, follow these steps:
-
Install Conan package manager
-
To build. The binary is
build/Release/main.
make build-releasemake start-debug
# or
make start-release