| 1 |
set(CONTACT_COMPONENTS_PLUGIN "lomiri-contacts-qml") |
| 2 |
|
| 3 |
set(CONTACT_COMPONENTS_QMLS |
| 4 |
ActionButton.qml |
| 5 |
ContactAvatar.qml |
| 6 |
ContactDelegate.qml |
| 7 |
ContactDetailOnlineAccountTypeModel.qml |
| 8 |
ContactDetailPhoneNumberTypeModel.qml |
| 9 |
ContactDetailPickerPhoneNumberDelegate.qml |
| 10 |
ContactFetch.qml |
| 11 |
ContactList.js |
| 12 |
ContactListButtonDelegate.qml |
| 13 |
ContactListModel.qml |
| 14 |
ContactListView.qml |
| 15 |
ContactManager.js |
| 16 |
ContactSimpleListView.qml |
| 17 |
Contacts.js |
| 18 |
FastScroll.js |
| 19 |
FastScroll.qml |
| 20 |
ListItemWithActionsCheckBox.qml |
| 21 |
ListItemWithActions.qml |
| 22 |
MultipleSelectionListView.qml |
| 23 |
MultipleSelectionVisualModel.qml |
| 24 |
Ofono.qml |
| 25 |
OnlineAccountsDummy.qml |
| 26 |
OnlineAccountsHelper.qml |
| 27 |
PageWithBottomEdge.qml |
| 28 |
qmldir |
| 29 |
SectionDelegate.qml |
| 30 |
SIMList.qml |
| 31 |
SIMCardImportPage.qml |
| 32 |
SubtitledWithColors.qml |
| 33 |
Triangle.qml |
| 34 |
VCardParser.qml |
| 35 |
ContactImportPage.qml |
| 36 |
) |
| 37 |
|
| 38 |
set(CONTACT_COMPONENTS_SRC |
| 39 |
contacts.h |
| 40 |
contacts.cpp |
| 41 |
imagescalethread.h |
| 42 |
imagescalethread.cpp |
| 43 |
plugin.h |
| 44 |
plugin.cpp |
| 45 |
ringtonemodel.h |
| 46 |
ringtonemodel.cpp |
| 47 |
simcardcontacts.h |
| 48 |
simcardcontacts.cpp |
| 49 |
) |
| 50 |
|
| 51 |
include_directories( |
| 52 |
${CMAKE_BINARY_DIR} |
| 53 |
${QOfono_INCLUDE_DIRS} |
| 54 |
) |
| 55 |
|
| 56 |
add_library(${CONTACT_COMPONENTS_PLUGIN} MODULE |
| 57 |
${CONTACT_COMPONENTS_SRC} |
| 58 |
) |
| 59 |
|
| 60 |
target_link_libraries(${CONTACT_COMPONENTS_PLUGIN} |
| 61 |
${QOfono_LIBRARIES} |
| 62 |
Qt5::Core |
| 63 |
Qt5::Contacts |
| 64 |
Qt5::Qml |
| 65 |
Qt5::Quick |
| 66 |
Qt5::DBus |
| 67 |
Qt5::Versit |
| 68 |
) |
| 69 |
|
| 70 |
# make the files visible on qtcreator |
| 71 |
add_custom_target(contact_components_QmlFiles ALL SOURCES ${CONTACT_COMPONENTS_QMLS}) |
| 72 |
|
| 73 |
if(INSTALL_COMPONENTS) |
| 74 |
install(FILES ${CONTACT_COMPONENTS_QMLS} DESTINATION ${QMLPLUGIN_INSTALL_PREFIX}) |
| 75 |
install(TARGETS ${CONTACT_COMPONENTS_PLUGIN} DESTINATION ${QMLPLUGIN_INSTALL_PREFIX}) |
| 76 |
endif() |
| 77 |
|
| 78 |
|
| 79 |
#copy qml files to build dir to make it possible to run without install |
| 80 |
foreach(QML_FILE ${CONTACT_COMPONENTS_QMLS}) |
| 81 |
add_custom_command(TARGET contact_components_QmlFiles PRE_BUILD |
| 82 |
COMMAND ${CMAKE_COMMAND} -E |
| 83 |
copy ${CMAKE_CURRENT_SOURCE_DIR}/${QML_FILE} ${CMAKE_CURRENT_BINARY_DIR}/) |
| 84 |
endforeach() |
| 85 |
|
| 86 |
if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) |
| 87 |
add_dependencies(copyqmlfiles contact_components_QmlFiles) |
| 88 |
endif() |
| 89 |
|