]> git.lyx.org Git - lyx.git/blob - src/frontends/tests/CMakeLists.txt
Cmake testing: Added test_biblio
[lyx.git] / src / frontends / tests / 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) 2013 Kornel Benko, <kornel@lyx.org>
5
6 project(test)
7
8 set(TESTS "test_biblio")
9
10 add_executable(biblio biblio.cpp boost.cpp)
11 target_link_libraries(biblio ${Lyx_Boost_Libraries})
12 add_dependencies(lyx_run_tests biblio)
13
14 foreach(tst ${TESTS})
15   add_test(NAME "frontends/${tst}"
16     COMMAND ${CMAKE_COMMAND}
17       -Dbiblio=$<TARGET_FILE:biblio>
18       -Dsaved_data=${TOP_SRC_DIR}/src/frontends/tests/regfiles/biblio
19       -P ${TOP_SRC_DIR}/src/frontends/tests/${tst}.cmake)
20 endforeach()