Debian Codegraph @

src/imports/Lomiri/Contacts/CMakeLists.txt

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