mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Roundtrip tex2lyx, cmake-build:
1.) test.ltx, test.lyx.tex in build-dir (missed this one in previous commit) 2.) Added dependency to "lyx" to work on clean build dir too
This commit is contained in:
parent
6fa12b0971
commit
ea76d6de95
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
project(test)
|
project(test)
|
||||||
|
|
||||||
set(_test_depend "${TOP_SRC_DIR}/src/tex2lyx/test/test.ltx")
|
set(_test_depend "${CMAKE_CURRENT_BINARY_DIR}/test.ltx")
|
||||||
set(_test_output "${TOP_SRC_DIR}/src/tex2lyx/test/test.lyx.tex")
|
set(_test_output "${CMAKE_CURRENT_BINARY_DIR}/test.lyx.tex")
|
||||||
foreach(_arg runtests.py DummyDocument.tex test.ltx foo.eps foo.png)
|
foreach(_arg runtests.py DummyDocument.tex test.ltx foo.eps foo.png)
|
||||||
configure_file("${TOP_SRC_DIR}/src/tex2lyx/test/${_arg}" "${CMAKE_CURRENT_BINARY_DIR}/${_arg}" COPYONLY)
|
configure_file("${TOP_SRC_DIR}/src/tex2lyx/test/${_arg}" "${CMAKE_CURRENT_BINARY_DIR}/${_arg}" COPYONLY)
|
||||||
endforeach(_arg)
|
endforeach(_arg)
|
||||||
@ -29,7 +29,8 @@ ADD_CUSTOM_COMMAND(
|
|||||||
ARGS "${CMAKE_CURRENT_BINARY_DIR}/runtests.py" "${TOP_BINARY_DIR}/bin/${_tex2lyx}" "${TOP_SRC_DIR}/lib/scripts"
|
ARGS "${CMAKE_CURRENT_BINARY_DIR}/runtests.py" "${TOP_BINARY_DIR}/bin/${_tex2lyx}" "${TOP_SRC_DIR}/lib/scripts"
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
DEPENDS ${_tex2lyx} ${_test_depend}
|
DEPENDS ${_tex2lyx} ${_test_depend}
|
||||||
|
COMMENT "${LYX_PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/runtests.py" "${TOP_BINARY_DIR}/bin/${_tex2lyx}" "${TOP_SRC_DIR}/lib/scripts"
|
||||||
)
|
)
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(test DEPENDS ${_tex2lyx} ${_test_output})
|
ADD_CUSTOM_TARGET(test DEPENDS ${_tex2lyx} ${_lyx} ${_test_output})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user