Make the export test available to all, since it is independent of X11
# Copyright (c) 2012 Kornel Benko kornel@lyx.org
#
# Copyright (c) 2012 Kornel Benko kornel@lyx.org
#
+if(Q_WS_X11)
+ # Make sure, the needed programs are in PATH
+ find_program(PCREGREP_EXE "pcregrep")
+ find_program(WMCTRL_EXE "wmctrl")
+ # This is needed to build xvkbd
+ # Programs pcregrep wmctrl and xvkbd are used in subsequent scripts
+ # while testing
+ if(X11_FOUND AND PCREGREP_EXE AND WMCTRL_EXE)
+ message(STATUS "PCREGREP_EXE and WMCTRL_EXE found")
project(autotests)
add_subdirectory(xvkbd)
project(autotests)
add_subdirectory(xvkbd)
-DLOCALE_DIR=${LOCALE_DIR}
-P ${TOP_SRC_DIR}/development/autotests/single-test.cmake)
endforeach()
-DLOCALE_DIR=${LOCALE_DIR}
-P ${TOP_SRC_DIR}/development/autotests/single-test.cmake)
endforeach()
- add_test(NAME lyx_export
- WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}"
- COMMAND ${CMAKE_COMMAND} -DLYX_ROOT=${TOP_SRC_DIR} -Dlyx=${TOP_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/lyx -P "${TOP_SRC_DIR}/development/autotests/export.cmake")
- set_tests_properties(lyx_export PROPERTIES DEPENDS lyx)
+add_test(NAME lyx_export
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}"
+ COMMAND ${CMAKE_COMMAND} -DLYX_ROOT=${TOP_SRC_DIR} -Dlyx=${TOP_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/lyx -P "${TOP_SRC_DIR}/development/autotests/export.cmake")
+set_tests_properties(lyx_export PROPERTIES DEPENDS lyx)
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+#
+# Copyright (c) 2012 Kornel Benko kornel@lyx.org
+#
+#
+# LYX_ROOT = ${TOP_SRC_DIR}
+# lyx = ${TOP_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/lyx
+#
+# Script should be called like:
+# cmake -DLYX_ROOT=xxx \
+# -Dlyx=xxx \
+# -P "${TOP_SRC_DIR}/development/autotests/export.cmake"
+#
file(GLOB lyx_files "${LYX_ROOT}/lib/doc/*.lyx")
message(STATUS "lyx_files = ${lyx_files}")
file(GLOB lyx_files "${LYX_ROOT}/lib/doc/*.lyx")
message(STATUS "lyx_files = ${lyx_files}")