source_properties.cmake 485 B

123456789101112131415
  1. function (check_source_file_property file prop)
  2. get_source_file_property(gsfp_val "${file}" "${prop}")
  3. get_property(gp_val
  4. SOURCE "${file}"
  5. PROPERTY "${prop}")
  6. message("get_source_file_property: -->${gsfp_val}<--")
  7. message("get_property: -->${gp_val}<--")
  8. endfunction ()
  9. set_source_files_properties(file.c PROPERTIES empty "" custom value)
  10. check_source_file_property(file.c empty)
  11. check_source_file_property(file.c custom)
  12. check_source_file_property(file.c noexist)