CMakeLists.txt 2.2 KB
Newer Older
1
include_directories(
2
3
   SensorDisplayLib/
)
4
5
6
7


########### next target ###############

Lukáš Tinkl's avatar
Lukáš Tinkl committed
8
9
add_definitions(-DTRANSLATION_DOMAIN=\"ksysguard\")

10
set(libsensordisplays_SRCS
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
   	SensorDisplayLib/SensorDisplay.cpp
   	SensorDisplayLib/BarGraph.cpp
   	SensorDisplayLib/DancingBars.cpp
   	SensorDisplayLib/DancingBarsSettings.cpp
   	SensorDisplayLib/DummyDisplay.cpp
   	SensorDisplayLib/FancyPlotter.cpp
   	SensorDisplayLib/FancyPlotterSettings.cpp
   	SensorDisplayLib/ListView.cpp
   	SensorDisplayLib/LogFile.cpp
   	SensorDisplayLib/MultiMeter.cpp
   	SensorDisplayLib/MultiMeterSettings.cpp
   	SensorDisplayLib/ProcessController.cpp
   	SensorDisplayLib/SensorLogger.cpp
   	SensorDisplayLib/SensorLoggerDlg.cpp
   	SensorDisplayLib/SensorLoggerSettings.cpp
   	SensorDisplayLib/SensorModel.cpp
   	SensorDisplayLib/ListViewSettings.cpp
#   	SensorDisplayLib/modeltest.cpp
29
30
	)

Lukáš Tinkl's avatar
Lukáš Tinkl committed
31
ki18n_wrap_ui( libsensordisplays_SRCS
32
33
34
35
36
   SensorDisplayLib/ListViewSettingsWidget.ui
   SensorDisplayLib/LogFileSettings.ui
   SensorDisplayLib/MultiMeterSettingsWidget.ui
   SensorDisplayLib/SensorLoggerDlgWidget.ui
   SensorDisplayLib/SensorLoggerSettingsWidget.ui
Tobias Koenig's avatar
Tobias Koenig committed
37
)
38

39
set(ksysguard_KDEINIT_SRCS ${libsensordisplays_SRCS}
Stephen Kelly's avatar
Stephen Kelly committed
40
   ksortfilterproxymodel.cpp
John Tapsell's avatar
John Tapsell committed
41
42
43
44
45
46
47
   SensorBrowser.cpp
   WorkSheet.cpp
   WorkSheetSettings.cpp
   Workspace.cpp
   HostConnector.cpp
   StyleEngine.cpp
   ksysguard.cpp )
48
49
50



51
kf5_add_kdeinit_executable(ksysguard ${ksysguard_KDEINIT_SRCS})
52
target_compile_definitions(kdeinit_ksysguard PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
53

54
55
56
target_link_libraries(kdeinit_ksysguard
    KF5::ProcessUi
    KF5::SignalPlotter
Hrvoje Senjan's avatar
Hrvoje Senjan committed
57
    KF5::DBusAddons
58
59
60
61
62
    KF5::ItemViews
    KF5::NewStuff
    KF5::SysGuard
    KF5::I18n
    KF5::IconThemes
63
    KF5::KDELibs4Support)
64

65
install(TARGETS kdeinit_ksysguard ${INSTALL_TARGETS_DEFAULT_ARGS})
Laurent Montel's avatar
Laurent Montel committed
66
install(TARGETS ksysguard         ${INSTALL_TARGETS_DEFAULT_ARGS})
67
68
69

########### install files ###############

Laurent Montel's avatar
Laurent Montel committed
70
install( PROGRAMS org.kde.ksysguard.desktop  DESTINATION  ${XDG_APPS_INSTALL_DIR} )
71
install( FILES ProcessTable.sgrd SystemLoad2.sgrd DESTINATION  ${DATA_INSTALL_DIR}/ksysguard )
72
install( FILES ksysguardui.rc  DESTINATION  ${KXMLGUI_INSTALL_DIR}/ksysguard )
Laurent Montel's avatar
Laurent Montel committed
73
install( FILES ksysguard.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
74