| 1 |
set_source_files_properties(LomiriTestCase20.qml |
| 2 |
PROPERTIES |
| 3 |
QT_QML_SOURCE_TYPENAME LomiriTestCase |
| 4 |
) |
| 5 |
|
| 6 |
# Normally, LomiriTest should be a module target that is loaded at runtime, |
| 7 |
# however we have some tests that need to link to it, so as a workaround we |
| 8 |
# make it a shared library target here. |
| 9 |
add_library(LomiriTest SHARED) |
| 10 |
|
| 11 |
qt_add_qml_module(LomiriTest |
| 12 |
URI Lomiri.Test |
| 13 |
VERSION 2.0 |
| 14 |
PLUGIN_TARGET LomiriTest |
| 15 |
CLASS_NAME TestPlugin |
| 16 |
OUTPUT_DIRECTORY "${QML_BUILD_DIR}/Lomiri/Test" |
| 17 |
NO_GENERATE_EXTRA_QMLDIRS |
| 18 |
NO_GENERATE_QMLTYPES |
| 19 |
NO_GENERATE_PLUGIN_SOURCE |
| 20 |
NO_PLUGIN_OPTIONAL |
| 21 |
SOURCES |
| 22 |
plugin/testplugin.cpp |
| 23 |
plugin/testplugin.h |
| 24 |
plugin/uctestcase.cpp |
| 25 |
plugin/uctestcase.h |
| 26 |
plugin/uctestextras.cpp |
| 27 |
plugin/uctestextras.h |
| 28 |
QML_FILES |
| 29 |
LomiriTestCase20.qml |
| 30 |
) |
| 31 |
|
| 32 |
target_include_directories(LomiriTest PUBLIC |
| 33 |
"${CMAKE_CURRENT_SOURCE_DIR}/plugin" |
| 34 |
) |
| 35 |
|
| 36 |
target_link_libraries(LomiriTest PRIVATE |
| 37 |
LomiriGestures |
| 38 |
LomiriToolkit |
| 39 |
Qt::Core |
| 40 |
Qt::CorePrivate |
| 41 |
Qt::Gui |
| 42 |
Qt::GuiPrivate |
| 43 |
Qt::Qml |
| 44 |
Qt::QmlPrivate |
| 45 |
Qt::QuickPrivate |
| 46 |
Qt::Test |
| 47 |
) |
| 48 |
|
| 49 |
install_qml_module(LomiriTest) |