CetRegisterExportSet¶
Defines cet_register_export_set() to register export sets and
target namespaces.
- cet_register_export_set¶
Register export sets and target namespaces; also determine the default namespace to use for local (non-exported) target aliases.
cet_register_export_set([<options])
Options¶
NAMESPACE <namespace>Set the namespace to be associated with the export set.
NAMESPACE_VAR <var>Return the namespace in
<var>.NO_REDEFINEDo not attempt to redefine the export set if it exists already.
SET_DEFAULTSet the default export set to be used by Cetmodules build commands if not otherwise specified.
SET_NAME <name>Specify the export set name to
name(defaults to<PROJECT-NAME>_DEFAULT_EXPORT_SET).SET_VAR <var>Return the export set name in
var.
Details¶
cet_register_export_setregisters an export set with an optionally-defined namespace exported targets, optionally setting it as default for use by Cetmodules commands such ascet_make_library()andcet_make_exec().Note
An export set should be unique to a given project: the
CETMODULES_CURRENT_PROJECT_NAMEis therefore prepended to any spacified export set name separated by_unless it already has such a prefix.Examples¶
cet_register_export_set(NAMESPACE_VAR ns NO_REDEFINE)
Return the current default namespace scope as variable
nscet_register_export_set(SET_VAR es NO_REDEFINE)
Return the current default export set name as variable
escet_register_export_set(SET_NAME my_es NAMESPACE my_ns SET_DEFAULT SET_VAR ns)
Define a new export set
<PROJECT-NAME>_my_eswith namespacemy_nsand set it as the default. Subsequent targets will be exported in this set with exported target namemy_ns::<target>if not otherwise specified.
Variables affecting behavior¶
Cetmodules