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