summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: d2a03ce9db21d6fc63c603ac845781bc43ea1f73 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${GPGME_INCLUDE_DIRS}
  ${ARTS_INCLUDE_DIRS}
  ${LIBART_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
  ${GPGME_LIBRARY_DIRS}
  ${ARTS_LIBRARY_DIRS}
  ${LIBART_LIBRARY_DIRS}
)


##### basketcommon (shared)

tde_add_library( basketcommon SHARED AUTOMOC

  SOURCES
        kicondialogui.ui passwordlayout.ui basketdcopiface.skel
        archive.cpp bnpview.cpp settings.cpp basket.cpp
        basketproperties.cpp linklabel.cpp variouswidgets.cpp
        xmlwork.cpp keyboard.cpp global.cpp exporterdialog.cpp
        htmlexporter.cpp notefactory.cpp softwareimporters.cpp
        focusedwidgets.cpp popupmenu.cpp basketfactory.cpp
        tag.cpp qeffects.cpp kcolorcombo2.cpp newbasketdialog.cpp
        tagsedit.cpp formatimporter.cpp note.cpp notecontent.cpp
        notedrag.cpp noteedit.cpp filter.cpp tools.cpp
        backgroundmanager.cpp regiongrabber.cpp kicondialog.cpp
        kiconcanvas.cpp kgpgme.cpp likeback.cpp crashhandler.cpp
        password.cpp colorpicker.cpp basketlistview.cpp
        debugwindow.cpp systemtray.cpp aboutdata.cpp
        basketstatusbar.cpp clickablelabel.cpp backup.cpp
  LINK
     tdecore-shared
     tdeui-shared
     tdeio-shared
     tdeparts-shared
     kjs-shared
     ${ARTSC_LIBRARIES}
     ${ARTSKDE_LIBRARIES}
     ${GPGME_LIBRARIES}

  DESTINATION ${LIB_INSTALL_DIR}
)


##### basket (executable)

tde_add_executable( ${PROJECT_NAME} AUTOMOC

  SOURCES
        main.cpp
        mainwindow.cpp
        application.cpp
  LINK
     tdecore-shared
     tdeui-shared
     tdeutils-shared
     kjs-shared
     ${ARTSC_LIBRARIES}
     ${ARTSKDE_LIBRARIES}
     basketcommon-shared

  DESTINATION ${BIN_INSTALL_DIR}
)


##### libbasketpart (kpart)

tde_add_kpart( libbasketpart MODULE AUTOMOC

  SOURCES
        basket_part.cpp
  LINK
     tdecore-shared
     tdeui-shared
     tdeparts-shared
     kjs-shared
     ${ARTSC_LIBRARIES}
     ${ARTSKDE_LIBRARIES}
     basketcommon-shared
     
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcm_basket (kpart)

tde_add_kpart( kcm_basket MODULE AUTOMOC

  SOURCES
        kcm_basket.cpp
  LINK
     tdecore-shared
     tdeui-shared
     kjs-shared
     ${ARTSC_LIBRARIES}
     ${ARTSKDE_LIBRARIES}
     basketcommon-shared

 DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### icons

tde_install_icons()


##### other data

install(
    FILES basketui.rc basket_part.rc
    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)

install(
    FILES
        basket_part.desktop
        basket_config_general.desktop
        basket_config_baskets.desktop 
        basket_config_new_notes.desktop
        basket_config_notes_appearance.desktop
        basket_config_apps.desktop

    DESTINATION ${SERVICES_INSTALL_DIR}
)

install(
    FILES ${PROJECT_NAME}.desktop
    DESTINATION ${XDG_APPS_INSTALL_DIR}
)