Debian Codegraph @

src/imports/Lomiri/AddressBook/ContactEditor/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
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 RemoveContactsDialog.qml
23 TextInputDetail.qml
24 ValueSelector.qml
25 qmldir
26 )
27
28 # make the files visible on qtcreator
29 add_custom_target(contact_editor_QmlFiles ALL SOURCES ${AB_CONTACT_EDITOR_QMLS})
30
31 if(INSTALL_COMPONENTS)
32 install(FILES ${AB_CONTACT_EDITOR_QMLS} DESTINATION ${ADDRESS_BOOK_QMLPLUGIN_INSTALL_PREFIX}/ContactEditor)
33 endif()
34
35 #copy qml files to build dir to make it possible to run without install
36 foreach(QML_FILE ${AB_CONTACT_EDITOR_QMLS})
37 add_custom_command(TARGET contact_editor_QmlFiles PRE_BUILD
38 COMMAND ${CMAKE_COMMAND} -E
39 copy ${CMAKE_CURRENT_SOURCE_DIR}/${QML_FILE} ${CMAKE_CURRENT_BINARY_DIR}/)
40 endforeach()
41
42 if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
43 add_dependencies(copyqmlfiles contact_editor_QmlFiles)
44 endif()
45