set_source_files_properties.rst 616 B

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