ValidateSupportFiles.cmake 688 B

1234567891011121314151617
  1. foreach (support_dir IN LISTS SUPPORT_FILES_DIRECTORY)
  2. file (GLOB_RECURSE files LIST_DIRECTORIES TRUE RELATIVE "${BASE_DIRECTORY}" "${support_dir}/*")
  3. list (APPEND support_files ${files})
  4. endforeach()
  5. list(SORT support_files)
  6. if (OUTFILE_DIR)
  7. set (expected_files "BarSupport/Bar.cs;BarSupport/BarPINVOKE.cs;BarSupport/Math.cs;FooSupport/Foo.cs;FooSupport/FooPINVOKE.cs;FooSupport/Math.cs")
  8. else()
  9. set (expected_files "Bar/Bar.cs;Bar/BarPINVOKE.cs;Bar/Math.cs;Bar/barCSHARP_wrap.cxx;Foo/Foo.cs;Foo/FooPINVOKE.cs;Foo/Math.cs;Foo/fooCSHARP_wrap.cxx")
  10. endif()
  11. if (NOT support_files STREQUAL expected_files)
  12. message (FATAL_ERROR "Support files not correctly collected.")
  13. endif()