cmaize.targets/cmaize_library

class cmaize.targets/cmaize_library.CMaizeLibrary

Bases: CMaizeTarget

Base class for all CMaize libraries. Intended to be used as a parent or mixin to provide general, programming language-agnostic features for managing library targets.

Additional Constructors

CTOR(_ctor_name)

Creates a CMaizeLibrary object to manage a target of the given name.

Note

This does not create a corresponding CMake target, so any call that should interact with a target will fail if the target does not already exist.

Parameters:
  • self (CMaizeLibrary) – CMaizeLibrary object constructed.

  • tgt_name (desc or target) – Name of the target. This should not duplicate any other target name already in scope.

  • _ctor_name (str)

Returns:

self will be set to the newly constructed CMaizeLibrary object.

Return type:

CMaizeLibrary

Attributes

type = "${BUILD_SHARED_LIBS}"
Type:

desc

Library type as defined by <type> in CMake’s add_library command.

Defaults to the value of BUILD_SHARED_LIBS