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})