cmaize.targets/build_target

class cmaize.targets/build_target.BuildTarget

Bases: CMaizeTarget

Wraps a target which must be built as part of the build system.

Methods

make_target()

Virtual member function for building the target.

Parameters:

self (BuildTarget) – BuildTarget object

_create_target()

Virtual member function to wrap calls to add_library, add_executable, add_custom_target, etc.

Parameters:

self (BuildTarget) – BuildTarget object

_set_include_directories()

Virtual member function to set the include directories for the target.

Parameters:

self (BuildTarget) – BuildTarget object

Attributes

build_path
Type:

path

Directory where the target binary will appear after being built.

include_dirs
Type:

List[path]

Paths needed to compile or import.

includes
Type:

List[path]

Files needed to compile or import.

project_specification
Type:

ProjectSpecification

The project specification for the current project.

depends

:type List[CMaizeTarget]

Targets that are dependencies.