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_REDEFINE

Do not attempt to redefine the export set if it exists already.

SET_DEFAULT

Set 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_set registers an export set with an optionally-defined namespace exported targets, optionally setting it as default for use by Cetmodules commands such as cet_make_library() and cet_make_exec().

Note

An export set should be unique to a given project: the CETMODULES_CURRENT_PROJECT_NAME is 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 ns

  • cet_register_export_set(SET_VAR es NO_REDEFINE)
    

    Return the current default export set name as variable es

  • cet_register_export_set(SET_NAME my_es NAMESPACE my_ns SET_DEFAULT SET_VAR ns)
    

    Define a new export set <PROJECT-NAME>_my_es with namespace my_ns and set it as the default. Subsequent targets will be exported in this set with exported target name my_ns::<target> if not otherwise specified.

Variables affecting behavior