1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2012 Kornel Benko, <kornel@lyx.org>
9 #file(GLOB _tex_tests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.ltx" "${CMAKE_CURRENT_SOURCE_DIR}/*.tex")
11 #list(REMOVE_ITEM _tex_tests DummyDocument.tex)
13 set(_tex_tests test.ltx
14 box-color-size-space-align.tex
19 test-refstyle-theorems.tex
22 XeTeX-polyglossia.tex)
24 foreach(_fl ${_tex_tests})
26 add_test(NAME tex2lyx/roundtrip/${_fl}
27 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
28 COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py"
29 "$<TARGET_FILE:${_tex2lyx}>"
30 "${TOP_SRC_DIR}/lib/scripts"
31 "${CMAKE_CURRENT_BINARY_DIR}"
33 add_test(NAME tex2lyx2lyx/roundtrip/${_fl}
34 WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
35 COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py" "uselyx2lyx"
36 "$<TARGET_FILE:${_tex2lyx}>"
37 "${TOP_SRC_DIR}/lib/scripts"
38 "${CMAKE_CURRENT_BINARY_DIR}"
42 add_dependencies(lyx_run_tests ${_tex2lyx} ${_lyx})