| 1 |
set(AB_CONTACT_COMMON_QMLS |
| 2 |
BusyExportingDialog.qml |
| 3 |
ContactDetailBase.qml |
| 4 |
ContactDetailItem.qml |
| 5 |
ContactDetailGroupBase.qml |
| 6 |
ContactDetailGroupWithTypeBase.qml |
| 7 |
ContactDetailTitle.qml |
| 8 |
ContactExporter.qml |
| 9 |
KeyboardRectangle.qml |
| 10 |
RemoveContactsDialog.qml |
| 11 |
qmldir |
| 12 |
) |
| 13 |
|
| 14 |
# make the files visible on qtcreator |
| 15 |
add_custom_target(contact_common_QmlFiles ALL SOURCES ${AB_CONTACT_COMMON_QMLS}) |
| 16 |
|
| 17 |
if(INSTALL_COMPONENTS) |
| 18 |
install(FILES ${AB_CONTACT_COMMON_QMLS} DESTINATION ${ADDRESS_BOOK_QMLPLUGIN_INSTALL_PREFIX}/Base) |
| 19 |
endif() |
| 20 |
|
| 21 |
#copy qml files to build dir to make it possible to run without install |
| 22 |
foreach(QML_FILE ${AB_CONTACT_COMMON_QMLS}) |
| 23 |
add_custom_command(TARGET contact_common_QmlFiles PRE_BUILD |
| 24 |
COMMAND ${CMAKE_COMMAND} -E |
| 25 |
copy ${CMAKE_CURRENT_SOURCE_DIR}/${QML_FILE} ${CMAKE_CURRENT_BINARY_DIR}/) |
| 26 |
endforeach() |
| 27 |
|
| 28 |
if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) |
| 29 |
add_dependencies(copyqmlfiles contact_common_QmlFiles) |
| 30 |
endif() |
| 31 |
|
| 32 |
|