]> git.lyx.org Git - lyx.git/blobdiff - development/checkurls/CMakeLists.txt
* es/Intro.lyx: Accept all changes and disable CT
[lyx.git] / development / checkurls / CMakeLists.txt
index debedc67b2655d9d9f0c654012cdb7c66935a995..02fdc95757b9abbd08fb3f2edbd612eb022da9b8 100644 (file)
@@ -4,17 +4,23 @@
 # Copyright (c) 2013 Kornel Benko <kornel@lyx.org>
 #           (c) 2013 Scott Kostyshak <skotysh@lyx.org>
 #
-# Needed, because of perl scripts here
-find_package(Perl REQUIRED)
 
-# create file the lyx-files-list
 set(TOP_SEARCH_PATH "${TOP_SRC_DIR}")
 set(LYXFILES_FILE "${CMAKE_CURRENT_BINARY_DIR}/filesToScan")
 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