Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1018 Bytes

BUILD.md

File metadata and controls

48 lines (32 loc) · 1018 Bytes

Build instructions

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

Packaging

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.