summaryrefslogtreecommitdiffstats
path: root/kpilot/CMakeLists.txt
blob: dbd268e22e3795fecaae2dad7bef71cf39fb710a (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

add_subdirectory( Icons )

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/lib
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


##### configuration (static) ####################

tde_add_library( configuration STATIC_PIC AUTOMOC
  SOURCES kpilotConfig.cpp kpilotSettings.kcfgc
  LINK tdecore-shared tdeui-shared tdeio-shared
)


##### kpilot (executable) #######################

tde_add_executable( kpilot AUTOMOC
  SOURCES pilotDaemonDCOP.stub kpilotDCOP.skel loggerDCOP.skel kpilot.cpp
    pilotComponent.cpp logWidget.cpp memoWidget.cpp addressWidget.cpp
    addressEditor.cpp dbviewerWidget.cpp dbFlagsEditor.cpp dbFlagsEditor_base.ui
    dbRecordEditor.cpp dbAppInfoEditor.cpp datebookWidget.cpp todoWidget.cpp
    todoEditor.cpp todoEditor_base.ui fileInstaller.cpp fileInstallWidget.cpp
    listItems.cpp
  LINK tdecore-shared tdeui-shared tdeio-shared tdeutils-shared
    kpilot-shared configuration-static
  DESTINATION ${BIN_INSTALL_DIR}
)


##### kpilotDaemon (executable) #################

tde_add_executable( kpilotDaemon AUTOMOC
  SOURCES pilotDaemonDCOP.skel kpilotDCOP.stub loggerDCOP.stub loggerDCOP.skel
    pilotDaemon.cpp logFile.cpp hotSync.cpp internalEditorAction.cpp
    fileInstaller.cpp
  LINK tdecore-shared tdeui-shared tdeio-shared kpilot-shared
    configuration-static
  DESTINATION ${BIN_INSTALL_DIR}
)


##### kcm_kpilot (kpart) ########################

tde_add_kpart( kcm_kpilot AUTOMOC
  SOURCES pilotDaemonDCOP.stub kpilotConfigDialog.cpp
    kpilotConfigDialog_device.ui kpilotConfigDialog_sync.ui
    kpilotConfigDialog_startup.ui kpilotConfigDialog_viewers.ui
    kpilotConfigDialog_backup.ui conduitConfigDialog.cpp kpilotProbeDialog.cpp
    kpilotConfigWizard_address.kcfgc kpilotConfigWizard_notes.kcfgc
    kpilotConfigWizard_vcal.kcfgc kpilotConfigWizard_user.ui
    kpilotConfigWizard_app.ui kpilotConfigWizard.cpp dbSelectionDialog.cpp
    dbSelection_base.ui
  LINK tdecore-shared tdeui-shared tdeio-shared kpilot-shared
    configuration-static
  DESTINATION ${PLUGIN_INSTALL_DIR}
)


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

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

install( FILES kpilot.desktop kpilotdaemon.desktop
  DESTINATION ${XDG_APPS_INSTALL_DIR}
)

install( FILES kpilot.upd
  DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
)

install( FILES kpilot_config.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}
)

install( FILES kpilotconduit.desktop
  DESTINATION ${SERVICETYPES_INSTALL_DIR}
)

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