]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test/CMakeLists.txt
Cmake build: Testing
[lyx.git] / src / tex2lyx / test / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2012 Kornel Benko, <kornel@lyx.org>
5 #
6
7 project(test)
8
9 file(GLOB _tex_tests RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.ltx" "${CMAKE_CURRENT_SOURCE_DIR}/*.tex")
10
11 list(REMOVE_ITEM _tex_tests DummyDocument.tex)
12
13 foreach(_fl ${_tex_tests})
14   set(fl ${_fl})
15   add_test(NAME tex2lyx/roundtrip/${_fl}
16     WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
17     COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/src/tex2lyx/test/runtests.py"
18     "$<TARGET_FILE:${_tex2lyx}>"
19     "${TOP_SRC_DIR}/lib/scripts"
20     "${CMAKE_CURRENT_BINARY_DIR}"
21     ${fl})
22 endforeach()
23
24