# Configure
mkdir Build
cd Build
cmake ..
# Build
make -l
# or
cmake --build .
Specify build options to CMake before building.
cd Build
cmake -DOPTION=VALUE ..
BUILD_TESTS
, defaultOFF
Build tests, which can then be run with
ctest
ormake test
.
BUILD_DEMOS
, defaultON
Build demo projects, which can be run with
make run-DemoName
.
BUILD_THIRDPARTY
, defaultON
Build any missing third-party dependencies.
BUILD_PACKAGES
, defaultOFF
Build packages for distribution (
.deb
,.rpm
,.tgz
, etc.).
BUILD_MODULES
, defaults to modules required by demosA semicolon-separated list of modules to build. Wrap in "" in order to keep it from being misinterpreted by the shell. Run CMake to display a list of available modules.
e.g.
cmake -DMODULES="OpenGL;Vulkan" ..
The examples are built to run from their source directories. To facilitate this, there are convenience targets prefixed with run-
make -l run-HelloWorld
# or
cmake --build . --target run-HelloWorld
Set the environment variable DUSK_VERBOSE=1
on a debug build to enable verbose logging.
Use the "Branch and Pull Request" model for contributing changes.