| 1 |
set(AB_CONTACT_VIEW_QMLS |
| 2 |
ActionButton.qml |
| 3 |
BasicFieldView.qml |
| 4 |
ContactDetailAddressesView.qml |
| 5 |
ContactDetailAvatarView.qml |
| 6 |
ContactDetailBirthdayView.qml |
| 7 |
ContactDetailEmailsView.qml |
| 8 |
ContactDetailGroupWithTypeView.qml |
| 9 |
ContactDetailNameView.qml |
| 10 |
ContactDetailNoteView.qml |
| 11 |
ContactDetailOnlineAccountsView.qml |
| 12 |
ContactDetailOrganizationsView.qml |
| 13 |
ContactDetailPhoneNumbersView.qml |
| 14 |
ContactDetailPhoneNumberView.qml |
| 15 |
ContactDetailRingtoneView.qml |
| 16 |
ContactDetailUrlView.qml |
| 17 |
ContactDetailSyncTargetView.qml |
| 18 |
ContactDetailWithTypeView.qml |
| 19 |
ContactFetchError.qml |
| 20 |
#ContactHeaderView.qml |
| 21 |
ContactViewPage.qml |
| 22 |
qmldir |
| 23 |
) |
| 24 |
|
| 25 |
# make the files visible on qtcreator |
| 26 |
add_custom_target(contact_view_QmlFiles ALL SOURCES ${AB_CONTACT_VIEW_QMLS}) |
| 27 |
|
| 28 |
if(INSTALL_COMPONENTS) |
| 29 |
install(FILES ${AB_CONTACT_VIEW_QMLS} DESTINATION ${ADDRESS_BOOK_QMLPLUGIN_INSTALL_PREFIX}/ContactView) |
| 30 |
endif() |
| 31 |
|
| 32 |
#copy qml files to build dir to make it possible to run without install |
| 33 |
foreach(QML_FILE ${AB_CONTACT_VIEW_QMLS}) |
| 34 |
add_custom_command(TARGET contact_view_QmlFiles PRE_BUILD |
| 35 |
COMMAND ${CMAKE_COMMAND} -E |
| 36 |
copy ${CMAKE_CURRENT_SOURCE_DIR}/${QML_FILE} ${CMAKE_CURRENT_BINARY_DIR}/) |
| 37 |
endforeach() |
| 38 |
|
| 39 |
if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) |
| 40 |
add_dependencies(copyqmlfiles contact_view_QmlFiles) |
| 41 |
endif() |