CMakeLists.txt 985 Bytes
Newer Older
1
2
3
4
5
6
7
8
set(ktp-proxy_SRCS
        proxy-observer.cpp
        proxy-service-adaptee.cpp
        proxy-service.cpp
        svc-channel-proxy.cpp
        svc-proxy-service.cpp
        otr-proxy-channel.cpp
        otr-proxy-channel-adaptee.cpp
9
        pending-curry-operation.cpp
10
11
        otr-session.cpp
        otr-manager.cpp
Marcin Ziemiński's avatar
Marcin Ziemiński committed
12
        otr-message.cpp
13
        otr-config.cpp
Marcin Ziemiński's avatar
Marcin Ziemiński committed
14
        otr-utils.cpp
15
        ktp-proxy-debug.cpp
16
17
)

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
18
kconfig_add_kcfg_files(ktp-proxy_SRCS ktp-proxy-config.kcfgc)
19

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
20
add_library(ktp-proxy-lib STATIC ${ktp-proxy_SRCS})
21

22
set(ktp-proxy_LIBS
23
        ${LIBOTR_LIBRARY}
24
        ${LIBGCRYPT_LIBRARIES}
25
        TelepathyQt5::Service
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
26
27
        KTp::CommonInternals
        KTp::OTR
Martin Klapetek's avatar
Martin Klapetek committed
28
        KF5::ConfigGui
29
30
)

31
32
target_link_libraries(ktp-proxy-lib ${ktp-proxy_LIBS})

Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
33
add_executable(ktp-proxy main.cpp)
34
target_link_libraries(ktp-proxy ktp-proxy-lib)
35
36

install(TARGETS ktp-proxy DESTINATION ${LIBEXEC_INSTALL_DIR})
Alexander Potashev's avatar
Alexander Potashev committed
37
install(FILES ktp-proxy-config.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})