ecos_clean.cmake 412 B

123456789101112
  1. file(GLOB _files ${ECOS_DIR}/*)
  2. # remove all directories, which consist of lower-case letters only
  3. # this skips e.g. CVS/ and .subversion/
  4. foreach(_entry ${_files})
  5. if(IS_DIRECTORY ${_entry})
  6. get_filename_component(dir ${_entry} NAME)
  7. if(${dir} MATCHES "^[a-z]+$")
  8. file(REMOVE_RECURSE ${_entry})
  9. endif(${dir} MATCHES "^[a-z]+$")
  10. endif(IS_DIRECTORY ${_entry})
  11. endforeach(_entry)