+ COMMAND ${CMAKE_COMMAND}
+ -DLYX_TESTS_USERDIR=${LYX_TESTS_USERDIR}
+ -DLYX_USERDIR_VER=${LYX_USERDIR_VER}
+ -DLYX_PYTHON_EXECUTABLE=${LYX_PYTHON_EXECUTABLE}
+ -DPY_SCRIPT=${runtestsScript}
+ -DTEX2LYX_EXE=$<TARGET_FILE:${_tex2lyx}>
+ -DSCRIPT_DIR=${scriptDir}
+ -DWORKDIR=${CMAKE_CURRENT_BINARY_DIR}
+ -DTESTFILE=${fl}
+ -P ${TOP_SRC_DIR}/src/tex2lyx/test/runtests.cmake)
+ set_tests_properties(tex2lyx/roundtrip/${_fl} PROPERTIES RESOURCE_LOCK "runtests.lock" LABELS "roundtrip")
+ add_test(NAME tex2lyx/cmplyx/${_fl}
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMAND ${CMAKE_COMMAND}
+ -DLYX_TESTS_USERDIR=${LYX_TESTS_USERDIR}
+ -DLYX_USERDIR_VER=${LYX_USERDIR_VER}
+ -DLYX_PYTHON_EXECUTABLE=${LYX_PYTHON_EXECUTABLE}
+ -DPY_SCRIPT=${runtestsScript}
+ -DFIRST_PARAM=uselyx2lyx
+ -DTEX2LYX_EXE=$<TARGET_FILE:${_tex2lyx}>
+ -DSCRIPT_DIR=${scriptDir}
+ -DWORKDIR=${CMAKE_CURRENT_BINARY_DIR}
+ -DTESTFILE=${fl}
+ -P ${TOP_SRC_DIR}/src/tex2lyx/test/runtests.cmake)
+ set_tests_properties(tex2lyx/cmplyx/${_fl} PROPERTIES RESOURCE_LOCK "runtests.lock" LABELS "cmplyx")
+endforeach()
+
+add_dependencies(lyx_run_tests ${_tex2lyx} ${_lyx})
+
+set(LyxTestFiles "") # "'" separated test-filenames
+set(LyxRemoveFiles) # Extra files created by runtests.py
+foreach(_fl ${_tex_tests})
+ set(LyxTestFiles "${LyxTestFiles}'${_fl}")
+ if (_fl MATCHES "^\(.*\)\\.\([^\\.]+)$")
+ list(APPEND LyxRemoveFiles "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_MATCH_1}.lyx.tex")
+ endif()
+endforeach()
+foreach(_lrf "DummyDocument.lyx.tex" "Dummy~Document.lyx.tex" "foo.pdf" "xfigtest.pdf" "xfigtest.pdftex_t")
+ list(APPEND LyxRemoveFiles "${CMAKE_CURRENT_SOURCE_DIR}/${_lrf}")