linglong use cmake presets, you can build and install linglong by running:
cmake --workflow --preset release
sudo cmake --install build-release
For developing or debugging linglong:
# Use ccache and ninja if available.
# You might want add this to the rc file of your shell.
export CMAKE_CXX_COMPILER_LAUNCHER=="$(command -v ccache 2>/dev/null)"
if command -v ninja &>/dev/null; then
export CMAKE_GENERATOR="Ninja"
fi
# configure, build and test
cmake --workflow --preset debug
# configure only
cmake --preset debug
# build only
cmake --build --preset debug
# test only
ctest --preset debug
linglong use CPM.cmake to download dependencies not found locally.
For packager want to disable this feature:
export CPM_USE_LOCAL_PACKAGES=1
For further information, check README of CPM.cmake.