file(WRITE "${LYXFILES_FILE}")
file(GLOB_RECURSE lyx_files RELATIVE "${TOP_SEARCH_PATH}" "${TOP_SEARCH_PATH}/*.lyx")
+set(NO_SEARCH_PATHS "/attic/" "src/tex2lyx/test" "/autotests/" "development/" "/Obsolete/")
foreach(_f ${lyx_files})
- file(APPEND "${LYXFILES_FILE}" "${_f}\n")
+ set(found OFF)
+ foreach(_p ${NO_SEARCH_PATHS})
+ if (_f MATCHES "${_p}")
+ set(found ON)
+ endif()
+ endforeach()
+ if (NOT found)
+ file(APPEND "${LYXFILES_FILE}" "${_f}\n")
+ endif()
endforeach()
# Define the perl-script running the actual test