| 1 |
set(AB_CONTACT_EDITOR_QMLS |
| 2 |
AlertMessageDialog.qml |
| 3 |
AvatarImport.qml |
| 4 |
AvatarImportDialog.qml |
| 5 |
ComboButtonAddField.qml |
| 6 |
ContactDetailAddressesEditor.qml |
| 7 |
ContactDetailAvatarEditor.qml |
| 8 |
ContactDetailBirthdayEditor.qml |
| 9 |
ContactDetailEmailsEditor.qml |
| 10 |
ContactDetailGroupWithTypeEditor.qml |
| 11 |
ContactDetailNameEditor.qml |
| 12 |
ContactDetailNoteEditor.qml |
| 13 |
ContactDetailOnlineAccountsEditor.qml |
| 14 |
ContactDetailOrganizationsEditor.qml |
| 15 |
ContactDetailPhoneNumbersEditor.qml |
| 16 |
ContactDetailRingtoneEditor.qml |
| 17 |
ContactDetailRingtoneSoundSelector.qml |
| 18 |
ContactDetailSyncTargetEditor.qml |
| 19 |
ContactDetailUrlEditor.qml |
| 20 |
ContactDetailWithTypeEditor.qml |
| 21 |
ContactEditorPage.qml |
| 22 |
TextInputDetail.qml |
| 23 |
ValueSelector.qml |
| 24 |
qmldir |
| 25 |
) |
| 26 |
|
| 27 |
# make the files visible on qtcreator |
| 28 |
add_custom_target(contact_editor_QmlFiles ALL SOURCES ${AB_CONTACT_EDITOR_QMLS}) |
| 29 |
|
| 30 |
if(INSTALL_COMPONENTS) |
| 31 |
install(FILES ${AB_CONTACT_EDITOR_QMLS} DESTINATION ${ADDRESS_BOOK_QMLPLUGIN_INSTALL_PREFIX}/ContactEditor) |
| 32 |
endif() |
| 33 |
|
| 34 |
#copy qml files to build dir to make it possible to run without install |
| 35 |
foreach(QML_FILE ${AB_CONTACT_EDITOR_QMLS}) |
| 36 |
add_custom_command(TARGET contact_editor_QmlFiles PRE_BUILD |
| 37 |
COMMAND ${CMAKE_COMMAND} -E |
| 38 |
copy ${CMAKE_CURRENT_SOURCE_DIR}/${QML_FILE} ${CMAKE_CURRENT_BINARY_DIR}/) |
| 39 |
endforeach() |
| 40 |
|
| 41 |
if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) |
| 42 |
add_dependencies(copyqmlfiles contact_editor_QmlFiles) |
| 43 |
endif() |
| 44 |
|