cmaize.targets/cxx_interface_library

class cmaize.targets/cxx_interface_library.CXXInterfaceLibrary

Bases: CXXLibrary, CMaizeInterfaceLibrary

Additional Constructors

CTOR(_ctor_name)

Creates a CXXInterfaceLibrary object to manage the named target.

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

Return type:

CXXInterfaceLibrary

Methods

_access_level(_al_result)

Get the access level for the target.

Note

Implements CXXTarget(_access_level.

Parameters:
  • self (CXXInterfaceLibrary) – CXXInterfaceLibrary object

  • _al_result (desc*) – Return variable holding the access level result.

Returns:

Access level of the target.

Return type:

desc

_set_public_headers()

CMake doesn’t let interface libraries set their public headers, so this function is a no-op.

Note

Overrides CXXTarget(_set_public_headers.

Parameters:

self (CXXInterfaceLibrary) – CXXInterfaceLibrary object