cmaize.user_api/add_executable

cmaize.user_api/add_executable.cmaize_add_executable(_cae_tgt_name **kwargs)

User function to build a executable target.

Note

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

Parameters:
  • _cae_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_executable.cmaize_add_cxx_executable(_cace_tgt_obj _cace_tgt_name **kwargs)

User function to build a CXX executable target.

Note

See CXXTarget(make_target documentation for additional optional arguments.

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

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

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

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

  • SOURCE_EXTS (List[desc], optional) – Source file extensions (exclude the dot), defaults to the value of CMAKE_CXX_SOURCE_FILE_EXTENSIONS.

  • INCLUDE_EXTS (List[desc], optional) – Include file extensions (exclude the dot), defaults to the value of CMAIZE_CXX_INCLUDE_FILE_EXTENSIONS.

Returns:

CXX executable target object.

Return type:

BuildTarget