summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 5ebb546f7aef85cd81f49183df965de13dcb8345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
add_subdirectory( pics )

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}/src
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${LIBOTR_INCLUDE_DIRS}
  ${KOPETE_INCLUDE_DIRS}
  ${KOPETE_INCLUDE_DIRS}/ui
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


##### kotr_kcfgc (static)

tde_add_library( kotr_kcfgc STATIC_PIC AUTOMOC

   SOURCES
         kopete_otr.kcfgc
)


##### kotr (shared)

tde_add_library( kotr SHARED AUTOMOC

  SOURCES
        otrplugin.cpp
        otrguiclient.cpp
        otrlchatinterface.cpp
        otrlconfinterface.cpp
        privkeypopup.cpp
        privkeypopupui.ui
        smppopup.cpp
        smppopupui.ui
        verifypopup.cpp
        verifypopupui.ui

  LINK
     kotr_kcfgc-static
     tdecore-shared
     tdeui-shared
     tdeio-shared
     ${LIBOTR_LIBRARIES}
     ${KOPETE_LIBRARIES}

  VERSION 0.0.0

  DESTINATION ${LIB_INSTALL_DIR}
)


##### kcm_kopete_otr (kpart)

tde_add_kpart( kcm_kopete_otr AUTOMOC

  SOURCES
        otrpreferences.cpp
        otrprefs.ui
  LINK
     kotr_kcfgc-static
     kotr-shared
     tdecore-shared
     tdeui-shared
     tdehtml-shared
     ${LIBOTR_LIBRARIES}
     ${KOPETE_LIBRARIES}

  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kopete_otr (kpart)

tde_add_kpart( ${PROJECT_NAME} AUTOMOC

  SOURCES
        otrplugin-factory.cpp

  LINK
     kotr-shared
     tdecore-shared
     tdeui-shared
     tdehtml-shared
     ${LIBOTR_LIBRARIES}
     ${KOPETE_LIBRARIES}

  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### other data

install(
    FILES otrchatui.rc otrui.rc
    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)

install(
    FILES kopete_otr.kcfg
    DESTINATION ${KCFG_INSTALL_DIR}
)


#### desktop files

tde_create_translated_desktop(
    SOURCE kopete_otr.desktop
    DESTINATION ${SERVICES_INSTALL_DIR}
)

tde_create_translated_desktop(
    SOURCE kopete_otr_config.desktop
    DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
)