1file(GLOB Eigen_src_subdirectories "*")
2escape_string_as_regex(ESCAPED_CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
3foreach(f ${Eigen_src_subdirectories})
4  if(NOT f MATCHES "\\.txt" AND NOT f MATCHES "${ESCAPED_CMAKE_CURRENT_SOURCE_DIR}/[.].+" )
5    add_subdirectory(${f})
6  endif()
7endforeach()
8