set_source_files_properties.rst 537 B

123456789101112131415
  1. set_source_files_properties
  2. ---------------------------
  3. Source files can have properties that affect how they are built.
  4. ::
  5. set_source_files_properties([file1 [file2 [...]]]
  6. PROPERTIES prop1 value1
  7. [prop2 value2 [...]])
  8. Set properties associated with source files using a key/value paired
  9. list. See :ref:`Source File Properties` for the list of properties known
  10. to CMake. Source file properties are visible only to targets added
  11. in the same directory (CMakeLists.txt).