Make use of the new cmake command: target_link_options, target_compile_options and target_compile_definitions.