cmaize.targets/cxx_library

class cmaize.targets/cxx_library.CXXLibrary

Bases: CXXTarget, CMaizeLibrary

Additional Constructors

CTOR(_ctor_name)

Creates a CXXLibrary object to manage the named target.

Parameters:
  • self (CXXLibrary) – CXXLibrary 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 CXXLibrary object.

Return type:

CXXLibrary

Methods

_create_target()

Creates the library target with add_library().

Creates a STATIC or SHARED library based on if the variable BUILD_SHARED_LIBS is ON.

Note

Overrides BuildTarget(_create_target.

Parameters:

self (CXXLibrary) – CXXLibrary object