The following configuration parameters can be used to change the behavior of the Z-Wave Build System.
The configuration parameters can be passed to cmake on command line or set in the project's CMakeLists.txt
file.
CMakeLists.txt
, it must be set before the call to add_subdirectory(tridentiot-sdk/z-wave)
.Compile for a specific region.
See zpal_radio_region_t for a list of valid regions.
Default behavior if not set is to generate targets for all regions.
Example of use on command line:
Example of use in CMakeLists.txt
:
Add CLI to applications.
Example of use on command line:
Example of use in CMakeLists.txt
:
The default behavior is that the CLI is added to applications in Debug build but not in Release build.
If set to ON
, all sample applications are compiled.
Example of use:
This configuration parameter only applies if the SDK is used as a subproject by invoking add_subdirectory(<SDK path>)
from a parent CMake project. This is default structure for a project generated by elcap
.
If included as a subproject, the default behavior is to skip compiling sample applications (OFF
).
Set the path to a custom private key used for signing binaries.
The path must be absolute.
Example of use on command line:
Example of use in CMakeLists.txt
:
CMake has a built-in variable that can be used to create the absolute path. If a key is located in the project directory under keys/
, ${CMAKE_SOURCE_DIR}
can be used.
Example:
Set the path to a custom public key used for signing binaries.
The path must be absolute.
Example: See ZWSDK_CONFIG_PRIVATE_SIGNING_KEY_PATH.
Instructs the build system to compile all sources instead of linking pre-built libraries.
Valid values:
Example of use on command line:
Example of use in CMakeLists.txt
: