| 1 |
# Normally, LomiriLayouts should be a module target that is loaded at runtime, |
| 2 |
# however we have some tests that need to link to it, so as a workaround we |
| 3 |
# make it a shared library target here. |
| 4 |
add_library(LomiriLayouts SHARED) |
| 5 |
|
| 6 |
qt_add_qml_module(LomiriLayouts |
| 7 |
URI Lomiri.Layouts |
| 8 |
VERSION 1.0 |
| 9 |
PLUGIN_TARGET LomiriLayouts |
| 10 |
CLASS_NAME PluginPlugin |
| 11 |
OUTPUT_DIRECTORY "${QML_BUILD_DIR}/Lomiri/Layouts" |
| 12 |
NO_GENERATE_EXTRA_QMLDIRS |
| 13 |
NO_GENERATE_QMLTYPES |
| 14 |
NO_GENERATE_PLUGIN_SOURCE |
| 15 |
NO_PLUGIN_OPTIONAL |
| 16 |
SOURCES |
| 17 |
plugin/propertychanges.cpp |
| 18 |
plugin/propertychanges_p.h |
| 19 |
plugin/ulconditionallayout.cpp |
| 20 |
plugin/ulconditionallayout.h |
| 21 |
plugin/ulconditionallayout_p.h |
| 22 |
plugin/ulitemlayout.cpp |
| 23 |
plugin/ulitemlayout.h |
| 24 |
plugin/ullayouts.cpp |
| 25 |
plugin/ullayouts.h |
| 26 |
plugin/ullayouts_p.h |
| 27 |
plugin/ullayoutsattached.cpp |
| 28 |
plugin/ulplugin.cpp |
| 29 |
plugin/ulplugin.h |
| 30 |
) |
| 31 |
|
| 32 |
target_include_directories(LomiriLayouts PUBLIC |
| 33 |
"${CMAKE_CURRENT_SOURCE_DIR}/plugin" |
| 34 |
) |
| 35 |
|
| 36 |
target_link_libraries(LomiriLayouts PRIVATE |
| 37 |
Qt::Core |
| 38 |
Qt::CorePrivate |
| 39 |
Qt::Gui |
| 40 |
Qt::GuiPrivate |
| 41 |
Qt::QmlPrivate |
| 42 |
Qt::QuickPrivate |
| 43 |
) |
| 44 |
|
| 45 |
install_qml_module(LomiriLayouts) |