Skip to content

Building

Leonard Ramminger edited this page Aug 31, 2026 · 1 revision

Building

Requirements

  1. CMake >= 3.31
  2. C++23 compiler
  3. Ninja or Visual Studio build tools
  4. Lua development package

From source

cmake --preset dev
cmake --build --preset dev
ctest --preset dev

CMake options

Option Default Purpose
PREBYTE_ENGINE_BUILD_TESTS ON Build test binary
PREBYTE_ENGINE_BUILD_FUZZERS OFF Build libFuzzer targets
PREBYTE_ENGINE_ENABLE_COVERAGE OFF GCC/gcov instrumentation

Install and consume

cmake --install build-cmake/dev --prefix /opt/prebyte-engine

Downstream CMake project:

find_package(prebyte-engine CONFIG REQUIRED)
target_link_libraries(my_app PRIVATE prebyte::engine_static)

An install smoke test lives in tests/cmake-consumer/.

Prebyte CLI

The CLI repo fetches this engine at configure time. See Prebyte Installation.

Clone this wiki locally