condition
: Condition to include/parse/setup the targetname
(default:get_filename_component(NAME_WE)
: Name of the targettarget_type
: Type of the target on oflibrary|executable|custom_target
parameters
: Parameters to add to the target generation oftarget_type
(Use this especially forcustom_target
)sources
: Sources to pass directly at the end ofadd_<target_type>
commandadd_dependencies
: other target dependencies to add to the targetexport
(default:ON
except forOBJECT
libraries andcustom_targets
): Export targetpublic_headers
(experimental) : list of public headersproperties
: List of properties to set on the target. submembers of array elements:name
,value
,append_option
target_install_parameters
: Custom parameters to passinstall(TARGETS)
. (Note: Don't pass export parameters! These are handled by CMakeJSON)
All the below do the same as target_<one of the below>
applied to the target
compile_definitions
compile_features
compile_options
include_directories
link_directories
link_libraries
link_options
precompile_headers
target_sources
each of these members can contain the following submembers which are arrays:
private
interface
public