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

project( libkcal )

include( ConfigureChecks.cmake )

tde_import( libkmime )
tde_import( ktnef )

add_subdirectory( versit )
add_subdirectory( tests )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/versit
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/libtdepim
  ${CMAKE_SOURCE_DIR}/ktnef
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${LIBICAL_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### headers ###################################

install( FILES
    alarm.h attachment.h attendee.h calendar.h calendarlocal.h
    calendarnull.h calendarresources.h calfilter.h calformat.h
    calstorage.h customproperties.h dndfactory.h duration.h event.h
    exceptions.h filestorage.h freebusy.h htmlexport.h icaldrag.h
    icalformat.h incidencebase.h incidence.h incidenceformatter.h
    calhelper.h calselectdialog.h journal.h kcalversion.h listbase.h
    period.h person.h qtopiaformat.h recurrencerule.h recurrence.h
    resourcecached.h resourcecalendar.h resourcelocalconfig.h
    resourcelocaldirconfig.h resourcelocaldir.h resourcelocal.h
    scheduler.h libkcal_export.h todo.h vcaldrag.h vcalformat.h
    attachmenthandler.h ${CMAKE_CURRENT_BINARY_DIR}/htmlexportsettings.h
  DESTINATION ${INCLUDE_INSTALL_DIR}/libkcal )


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

tde_create_translated_desktop(
  SOURCE local.desktop localdir.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}/tderesources/kcal
  PO_DIR libkcal-desktops
)

tde_create_translated_desktop(
  SOURCE kcal_manager.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}/tderesources
  PO_DIR libkcal-desktops
)


##### kcal_local (module) #######################

tde_add_kpart( kcal_local AUTOMOC
  SOURCES resourcelocal_plugin.cpp
  LINK kcal-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcal_localdir (module) ####################

tde_add_kpart( kcal_localdir AUTOMOC
  SOURCES resourcelocaldir_plugin.cpp
  LINK kcal-shared
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### kcal (shared) #############################

tde_add_library( kcal SHARED AUTOMOC
  SOURCES
    assignmentvisitor.cpp comparisonvisitor.cpp
    incidencebase.cpp incidence.cpp journal.cpp
    todo.cpp event.cpp freebusy.cpp attendee.cpp
    attachment.cpp recurrencerule.cpp recurrence.cpp
    alarm.cpp customproperties.cpp calendar.cpp
    calendarlocal.cpp calformat.cpp vcalformat.cpp
    icalformat.cpp icalformatimpl.cpp incidenceformatter.cpp
    calhelper.cpp calselectdialog.cpp vcaldrag.cpp
    icaldrag.cpp exceptions.cpp scheduler.cpp
    imipscheduler.cpp dummyscheduler.cpp calfilter.cpp
    person.cpp period.cpp duration.cpp dndfactory.cpp
    filestorage.cpp compat.cpp resourcecalendar.cpp
    resourcelocal.cpp resourcelocalconfig.cpp
    resourcelocaldir.cpp resourcelocaldirconfig.cpp
    resourcecached.cpp resourcecachedconfig.cpp
    calendarresources.cpp qtopiaformat.cpp attachmenthandler.cpp
    htmlexportsettings.kcfgc htmlexport.cpp calendarnull.cpp
    freebusyurlstore.cpp confirmsavedialog.cpp
  VERSION 2.0.0
  LINK versit-static emailfunctions-static ktnef-shared kmime-shared tdeabc-shared ${LIBICAL_LIBRARIES}
  DESTINATION ${LIB_INSTALL_DIR}
)


##### install import cmake modules ###############

tde_install_export( )