Whitelist target types in target_{include_directories,compile_definitions}

Setting include directories or compile definitions on a target created
with add_custom_target does not make sense.
Merge topic 'minor-fixes' into next

510fdcb Whitelist target types in target_{include_directories,compile_definitions}