set_target_properties.rst 608 B

123456789101112131415161718
  1. set_target_properties
  2. ---------------------
  3. Targets can have properties that affect how they are built.
  4. ::
  5. set_target_properties(target1 target2 ...
  6. PROPERTIES prop1 value1
  7. prop2 value2 ...)
  8. Set properties on a target. The syntax for the command is to list all
  9. the files you want to change, and then provide the values you want to
  10. set next. You can use any prop value pair you want and extract it
  11. later with the :command:`get_property` or :command:`get_target_property`
  12. command.
  13. See :ref:`Target Properties` for the list of properties known to CMake.