CMake Parameters#

CMake Basilisk Build Parameters#

CMake Parameter

Default

Description

BUILD_VIZINTERFACE

ON

will create vizInterface

BUILD_OPNAV

OFF

will create the OpenCV dependent optical navigation related modules

EXTERNAL_MODULES_PATH

Empty

path to external modules folder, see Building Custom Modules

URL_SPICE_KERNEL

https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de430.bsp

URL from which to download spice kernel de430.bsp dependency

CMake Example (same on macOS or Linux)#

While it is significantly easier to use the provided CMake presets or setting up your own user present, there may be a time when you want to call CMake and pass the parameters. The following are simple examples of doing that.

cd src
cmake -S . -B ../dist3 -DEXTERNAL_MODULES_PATH=../../ExternalModules -DBUILD_OPNAV=ON -DBUILD_VIZINTERFACE=ON
cmake --build ../dist3