CMake setting reference¶
This section references all settings that can be used with Cahute’s CMake settings.
CMake built-in settings¶
The following variables can be used with every CMake project, and described amongst others in cmake-variables(7), but may be described with information more relevant to Cahute here.
CMAKE_BUILD_TYPEBuild type. Commonly found values with Cahute are the following:
DebugNon-optimized output with debug symbols and no binary stripping.
ReleaseOptimized output.
Note
As described in the CMake package guidelines, CMake automatically forces
-O3whenReleaseis selected. Cahute overrides this with-O2instead.CMAKE_INSTALL_PREFIXInstall prefix.
In the Build from source guides guide, it is recommended to set this to
/usrrather than the default/usr/localvalue.CMAKE_VERBOSE_MAKEFILEOptional switch to set to
ONto see the commands executed when building the project.
Cahute-specific general settings¶
The following variables are specific to Cahute.
CAHUTE_DEFAULT_LOGLEVELDefault logging level used when creating a context, among
info,warning(by default),error,fatalandnone.See Logging facilities for more information.
CAHUTE_CLIEnable command-line utilities.
CAHUTE_CLI_EXPERIMENTALEnable experimental / unfinished command-line utilities.
CAHUTE_GITInclude git-related information to the built targets, i.e. if the source directory is a git repository with at least one commit on the current branch, the following macros will be defined and included in the headers:
CAHUTE_LIBUSBEnable the use of libusb.
CAHUTE_PKGCONFEnable installing pkgconf / pkg-config files.
CAHUTE_REPORT_URLURL to the bug reporting guide included within the library and command-line utilities.
CAHUTE_SDLEnable the use of SDL.
CAHUTE_UDEVEnable building and installing the udev rule.
CAHUTE_UDEV_GROUPName of the group to which the udev rule gives permission to calculators plugged in via USB.
It is recommended to set the same group here as for normal serial devices, as defined by your distribution.
The Linux Standard Base groups defines
uucpand the Archlinux user groups use it for serial devices, other distributions use other groups such asdialout; see the following for more information:
Cahute feature switches (advanced)¶
The following variables can be used to toggle features within the CMake configuration on or off directly.
Warning
These switches are for advanced users, and should be indirectly defined through settings defined in Cahute-specific general settings.
CAHUTE_FEATURE_CLI_CASEnable and include the CaS command-line reference target.
By default, this is enabled if both
CAHUTE_CLIandCAHUTE_CLI_EXPERIMENTALare enabled.CAHUTE_FEATURE_CLI_P7Enable and include the p7 command line reference target.
By default, this is enabled if
CAHUTE_CLIis enabled.CAHUTE_FEATURE_CLI_P7OSEnable and include the p7os command line reference target.
By default, this is enabled if
CAHUTE_CLIis enabled.CAHUTE_FEATURE_CLI_P7SCREENEnable and include the p7screen command line reference target.
By default, this is enabled if both
CAHUTE_CLIandCAHUTE_SDLare enabled.CAHUTE_FEATURE_CLI_XFER9860Enable and include the xfer9860 command line reference target.
By default, this is enabled if
CAHUTE_CLIis enabled.CAHUTE_FEATURE_LIB_HEADERSEnable and include the library headers.
By default, this is enabled.
CAHUTE_FEATURE_LIB_PKGCONFEnble and include the pkgconf / pkg-config files for the library.
By default, this is enabled if
CAHUTE_PKGCONFis enabled.CAHUTE_FEATURE_LIB_STATICEnable and include the target to build the static library.
By default, this is enabled.
CAHUTE_FEATURE_UDEVEnable and include the udev rules.
By default, this is enabled if
CAHUTE_UDEVis enabled.