summaryrefslogtreecommitdiffstats
path: root/knode/CMakeLists.txt
blob: 8b9269460fc22154437bdd229eb14b22fa64d38a (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
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

# FIXME KDE_CXXFLAGS = $(USE_THREADS)

tde_import( ktnef )
tde_import( libkcal )
tde_import( libkmime )
tde_import( libtdepim )
tde_import( libkpgp )

add_subdirectory( pics )
add_subdirectory( filters )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/libemailfunctions
  ${CMAKE_SOURCE_DIR}/libkmime
  ${CMAKE_SOURCE_DIR}/libtdepim
  ${CMAKE_SOURCE_DIR}/libkpgp
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### other data ################################

tde_install_icons( )

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

install( FILES
    knewsservice.protocol knode_config_identity.desktop
    knode_config_accounts.desktop knode_config_appearance.desktop
    knode_config_read_news.desktop knode_config_post_news.desktop
    knode_config_privacy.desktop knode_config_cleanup.desktop
  DESTINATION ${SERVICES_INSTALL_DIR} )

install( FILES
    headers.rc knodeui.rc knreaderui.rc kncomposerui.rc
  DESTINATION ${DATA_INSTALL_DIR}/knode )


##### knodecommon (shared) ######################

tde_add_library( knodecommon SHARED AUTOMOC
  SOURCES
    knconfigmanager.cpp knconfig.cpp knconfigwidgets.cpp
    knnetaccess.cpp knprotocolclient.cpp knnntpclient.cpp knjobdata.cpp
    knaccountmanager.cpp kncollection.cpp kncollectionviewitem.cpp
    knserverinfo.cpp knnntpaccount.cpp kngroupmanager.cpp
    knarticlecollection.cpp kngroup.cpp kngroupbrowser.cpp
    kngroupselectdialog.cpp kngroupdialog.cpp kngrouppropdlg.cpp
    knfoldermanager.cpp knfolder.cpp knmemorymanager.cpp
    kncleanup.cpp knconvert.cpp knarticlemanager.cpp knarticle.cpp
    kndisplayedheader.cpp knsourceviewwindow.cpp knarticlewindow.cpp
    knhdrviewitem.cpp kncomposer.cpp knarticlefactory.cpp
    knfiltermanager.cpp knstatusfilter.cpp knstringfilter.cpp
    knrangefilter.cpp knarticlefilter.cpp knfilterconfigwidget.cpp
    knfilterdialog.cpp knsearchdialog.cpp utilities.cpp knscoring.cpp
    knwidgets.cpp headerview.cpp knmainwidget.cpp aboutdata.cpp
    knglobals.cpp knodecomposeriface.skel knodeiface.skel
    kncollectionview.cpp articlewidget.cpp csshelper.cpp
    smtpaccountwidget_base.ui
  VERSION 3.0.0
  LINK emailfunctions-static tdepim-shared kpgp-shared tdehtml-shared
  DESTINATION ${LIB_INSTALL_DIR}
)


##### kcm_knode (module) ########################

tde_add_kpart( kcm_knode AUTOMOC
  SOURCES
    knconfigpages.cpp
  LINK knodecommon-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### libknodepart (module) #####################

tde_add_kpart( libknodepart AUTOMOC
  SOURCES
    knode_part.cpp
  LINK knodecommon-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### knode (executable) ########################

tde_add_executable( knode AUTOMOC
  SOURCES
    knode.cpp knapplication.cpp main.cpp
  LINK knodecommon-shared
  DESTINATION ${BIN_INSTALL_DIR}
)