Debian Codegraph @

src/imports/Lomiri/Contacts/CMakeLists.txt

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