cmaize.user_api/add_library

cmaize.user_api/add_library.cmaize_add_library(_cal_tgt_name **kwargs)

User function to build a library target.

Note

For additional optional parameters related to the specific language used, see the documentation for cmaize_add_<LANGUAGE>_library(), where <LANGUAGE> is the language being used. Supported languages are listed in the CMAIZE_SUPPORTED_LANGUAGES variable.

Parameters:
  • _cal_tgt_name (desc) – Name of the target to be created.

  • LANGUAGE (desc, optional) – Build language for the target, defaults to “CXX”

cmaize.user_api/add_library.cmaize_add_cxx_library(_cacl_tgt_obj _cacl_tgt_name **kwargs)

User function to build a CXX library target.

Note

See CXXTarget(make_target documentation for additional optional arguments.

Parameters:
  • _cacl_tgt_obj (BuildTarget) – Returned target object created.

  • _cal_tgt_name (desc) – Name of the target to be created.

  • SOURCE_DIR (path, optional) – Directory containing source code.

  • INCLUDE_DIRS (path, optional) – Directories containing files to include.

Returns:

CXX library target object.

Return type:

BuildTarget