Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
Show All 23 Lines | |||||
24 | # ktranscripttest needs the path to ktranscript in the build dir: it cannot rely | 24 | # ktranscripttest needs the path to ktranscript in the build dir: it cannot rely | ||
25 | # on the installed version since it must be able to run *before* the plugin is | 25 | # on the installed version since it must be able to run *before* the plugin is | ||
26 | # installed. | 26 | # installed. | ||
27 | target_compile_definitions(ki18n-ktranscripttest PRIVATE "KTRANSCRIPT_PATH=\"$<TARGET_FILE:ktranscript>\"") | 27 | target_compile_definitions(ki18n-ktranscripttest PRIVATE "KTRANSCRIPT_PATH=\"$<TARGET_FILE:ktranscript>\"") | ||
28 | 28 | | |||
29 | # ktranscriptcleantest needs to directly compile ktranscript.cpp with an addition DEFINE | 29 | # ktranscriptcleantest needs to directly compile ktranscript.cpp with an addition DEFINE | ||
30 | ecm_add_test(ktranscriptcleantest.cpp ../src/ktranscript.cpp ../src/common_helpers.cpp | 30 | ecm_add_test(ktranscriptcleantest.cpp ../src/ktranscript.cpp ../src/common_helpers.cpp | ||
31 | TEST_NAME ki18n-ktranscriptcleantest | 31 | TEST_NAME ki18n-ktranscriptcleantest | ||
32 | LINK_LIBRARIES Qt5::Script Qt5::Test Qt5::Concurrent KF5::I18n | 32 | LINK_LIBRARIES Qt5::Qml Qt5::Test Qt5::Concurrent KF5::I18n | ||
33 | ) | 33 | ) | ||
34 | target_compile_definitions(ki18n-ktranscriptcleantest PRIVATE "KTRANSCRIPT_TESTBUILD") | 34 | target_compile_definitions(ki18n-ktranscriptcleantest PRIVATE "KTRANSCRIPT_TESTBUILD") | ||
35 | target_include_directories(ki18n-ktranscriptcleantest PRIVATE ..) | 35 | target_include_directories(ki18n-ktranscriptcleantest PRIVATE ..) | ||
36 | endif() | 36 | endif() | ||
37 | 37 | | |||
38 | add_test(ki18n_install ${CMAKE_CTEST_COMMAND} | 38 | add_test(ki18n_install ${CMAKE_CTEST_COMMAND} | ||
39 | --build-and-test | 39 | --build-and-test | ||
40 | "${CMAKE_CURRENT_SOURCE_DIR}/ki18n_install" | 40 | "${CMAKE_CURRENT_SOURCE_DIR}/ki18n_install" | ||
Show All 9 Lines |