CMakeLists.txt 2.9 KB
Newer Older
1
project (libktpaccountskcminternal)
2
3
4
5
6

include_directories (${CMAKE_CURRENT_BINARY_DIR}
                     ${CMAKE_CURRENT_SOURCE_DIR}
)

7
8
add_definitions (-DMAKE_KCM_TELEPATHY_ACCOUNTS_LIB)

9
set (libktpaccountskcminternal_SRCS
10
     abstract-account-ui-plugin.cpp
11
     abstract-account-ui.cpp
12
     abstract-account-parameters-widget.cpp
Dominik Schmidt's avatar
Dominik Schmidt committed
13
     generic-advanced-options-widget.cpp
14
     account-edit-widget.cpp
15
     profile-select-widget.cpp
16
     simple-profile-select-widget.cpp
17
18
     profile-list-model.cpp
     profile-item.cpp
19
20
21
22
23
24
     parameter-edit-widget.cpp
     parameter-edit-delegate.cpp
     parameter-edit-model.cpp
     parameter-item.cpp
     dictionary.cpp
     plugin-manager.cpp
25
26
     feedback-widget.cpp
     validated-line-edit.cpp
27
28
)

29
set (libktpaccountskcminternal_HDRS
30
     abstract-account-ui-plugin.h
31
     abstract-account-ui.h
32
     abstract-account-parameters-widget.h
Dominik Schmidt's avatar
Dominik Schmidt committed
33
     generic-advanced-options-widget.h
34
     account-edit-widget.h
35
     plugin-manager.h
36
     profile-list-model.h
37
     profile-select-widget.h
38
     simple-profile-select-widget.h
39
     profile-item.h
40
     parameter-edit-widget.h
41
     parameter-edit-model.h
42
     validated-line-edit.h
43
44
)

45
set (libktpaccountskcminternal_PRETTY_HDRS
46
47
48
49
50
51
52
53
54
55
56
57
     AbstractAccountUiPlugin
     AbstractAccountUi
     AbstractAccountParametersWidget
     GenericAdvancedOptionsWidget
     AccountEditWidget
     ConnectionManagerItem
     PluginManager
     ProtocolSelectWidget
     ProtocolItem
     ParameterEditWidget
     ParameterEditModel
     ValidatedLineEdit
58
59
)

60
61
62
63
64
ki18n_wrap_ui (libktpaccountskcminternal_SRCS
               account-edit-widget.ui
               parameter-edit-widget.ui
               profile-select-widget.ui
               simple-profile-select-widget.ui
65
66
)

67
68
69
add_library(ktpaccountskcminternal
            SHARED
            ${libktpaccountskcminternal_SRCS}
70
71
)

72
73
74
75
if (TARGET TelepathyQt5::Core) # telepathy-qt 0.9.8
    set (TELEPATHY_QT5_LIBRARIES TelepathyQt5::Core)
endif()

76
target_link_libraries (ktpaccountskcminternal
77
78
79
80
81
82
83
84
85
86
                       Qt5::Widgets
                       Qt5::Core
#                        KF5::KIO
                       KF5::I18n
                       KF5::WidgetsAddons
                       KF5::ConfigWidgets
                       KF5::ItemViews
                       KF5::IconThemes
                       KF5::Service
                       ${TELEPATHY_QT5_LIBRARIES}
87
88
)

89

90
set_target_properties (ktpaccountskcminternal PROPERTIES
91
92
                       VERSION ${KTP_ACCOUNTS_KCM_VERSION}
                       SOVERSION ${KTP_ACCOUNTS_KCM_SONUMBER}
93
94
95
)

if (MSVC)
96
97
    set_target_properties (ktpaccountskcminternal PROPERTIES
                           OUTPUT_NAME libktpaccountskcminternal
98
99
100
101
    )
endif (MSVC)

# Install:
102
install (TARGETS ktpaccountskcminternal
103
         ${INSTALL_TARGETS_DEFAULT_ARGS}
104
         LIBRARY NAMELINK_SKIP
105
)
106

107
install (FILES
108
         ktpaccountskcminternal-accountuiplugin.desktop
109
110
111
         DESTINATION ${SERVICETYPES_INSTALL_DIR}
)