CMakeLists.txt 3.36 KB
Newer Older
1
2
3
include_directories (${CMAKE_CURRENT_BINARY_DIR}
                     ${CMAKE_CURRENT_SOURCE_DIR})

4
set (ktp_common_internals_private_SRCS
5
     abstract-message-filter.cpp
6
     account-factory.cpp
7
     actions.cpp
8
     capabilities-hack-private.cpp
9
     circular-countdown.cpp
10
11
     contact.cpp
     contact-factory.cpp
12
     core.cpp
13
     debug.cpp
14
     error-dictionary.cpp
15
     global-contact-manager.cpp
16
     global-presence.cpp
17
18
     logs-importer.cpp
     logs-importer-private.cpp
19
     message.cpp
20
     message-context.cpp
21
22
23
     message-escape-filter.cpp
     message-filter-config-manager.cpp
     message-processor.cpp
24
     outgoing-message.cpp
25
     persistent-contact.cpp
26
27
28
29
     presence.cpp
     service-availability-checker.cpp
     telepathy-handler-application.cpp
     text-parser.cpp
David Edmundson's avatar
David Edmundson committed
30
     pending-wallet.cpp
31
     wallet-interface.cpp
32
     wallet-utils.cpp
33
34
)

35
set (ktp_common_internals_private_HDRS
36
     abstract-message-filter.h
37
     actions.h
38
     circular-countdown.h
39
40
     contact.h
     contact-factory.h
41
     core.h
42
     debug.h
43
     error-dictionary.h
44
     global-contact-manager.h
45
     global-presence.h
46
     logs-importer.h
47
48
     message-filter-config-manager.h
     message.h
49
     message-context.h
50
     message-processor.h
51
     outgoing-message.h
52
     persistent-contact.h
53
54
55
56
     presence.h
     service-availability-checker.h
     telepathy-handler-application.h
     text-parser.h
David Edmundson's avatar
David Edmundson committed
57
     pending-wallet.h
58
     wallet-interface.h
59
     wallet-utils.h
David Edmundson's avatar
David Edmundson committed
60
     types.h
61
     ${CMAKE_CURRENT_BINARY_DIR}/ktpcommoninternals_export.h
62
63
)

64
if (TelepathyLoggerQt_FOUND)
65
66
    set (ktp_private_LIBS
         ${ktp_private_LIBS}
67
         ${TELEPATHY_LOGGER_LIBRARIES}
68
         )
69
endif ()
70

71
if (KF5People_FOUND)
72
73
    set (ktp_private_LIBS
         ${ktp_private_LIBS}
74
         KF5::People
75
         )
76
endif()
77

78
add_library (KTpCommonInternals
79
                 ${ktp_common_internals_private_SRCS}
80
)
81
82
83
add_library (KTp::CommonInternals ALIAS KTpCommonInternals)

generate_export_header(KTpCommonInternals BASE_NAME KTpCommonInternals)
84
85

#Raise SOVERSION for every 0.x cycle
86
87
88
89
90
set_target_properties(KTpCommonInternals PROPERTIES
                                        VERSION ${KTP_VERSION}
                                        SOVERSION ${KTP_SONUMBER}
                                        EXPORT_NAME CommonInternals
                                        DEFINE_SYMBOL MAKE_KTP_LIB)
91

92
93
target_link_libraries (KTpCommonInternals
                PUBLIC
94
95
                    Qt5::DBus
                    Qt5::Xml
96
                    KF5::Wallet #included from wallet-interface.h
97
                    TelepathyQt5::Core
98
99
100
                PRIVATE
                    ${ktp_private_LIBS}
                    KF5::KIOWidgets
101
102
103
                    KF5::I18n
                    KF5::IconThemes
                    KF5::Notifications
104
                    KF5::IconThemes
105
106
)

107
108
install (TARGETS KTpCommonInternals
         EXPORT KTpTargets
Alexander Potashev's avatar
Alexander Potashev committed
109
         ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}
110
111
)

112
install (FILES ${ktp_common_internals_private_HDRS}
Alexander Potashev's avatar
Alexander Potashev committed
113
         DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KTp
114
115
)

116
add_subdirectory(Declarative)
117
add_subdirectory(Models)
118
add_subdirectory(Widgets)
Daniel Vrátil's avatar
Daniel Vrátil committed
119
add_subdirectory(Logger)
120
add_subdirectory(OTR)
David Edmundson's avatar
David Edmundson committed
121
122
123
124
125
126
127
128
129
130

# API docs
find_package(Doxygen)

if(DOXYGEN_EXECUTABLE)
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

  add_custom_target(
    apidox
    COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile)
131
endif()