add_custom_target(CustomTarget) set_property(TARGET CustomTarget PROPERTY TYPE foo)