CMakeLists.txt 2.81 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1

Laurent Montel's avatar
Laurent Montel committed
2
add_definitions(-DTRANSLATION_DOMAIN=\"kmplot\")
Laurent Montel's avatar
Laurent Montel committed
3
4
5
6
7


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

set(kmplotpart_PART_SRCS 
8
   plotstylewidget.cpp
9
   initialconditionseditor.cpp
10
   functioneditor.cpp
11
   constants.cpp
Laurent Montel's avatar
Laurent Montel committed
12
13
   parser.cpp 
   xparser.cpp 
14
   equationedit.cpp
15
   equationeditwidget.cpp
16
   equationhighlighter.cpp
17
   equationeditorwidget.cpp
18
   equationeditor.cpp
19
   function.cpp
20
21
   view.cpp 
   maindlg.cpp 
Laurent Montel's avatar
Laurent Montel committed
22
   kprinterdlg.cpp 
23
24
   kconstanteditor.cpp
   kparametereditor.cpp
25
   functiontools.cpp 
Laurent Montel's avatar
Laurent Montel committed
26
27
   kmplotio.cpp 
   ksliderwindow.cpp 
28
   parameterswidget.cpp
29
30
   coordsconfigdialog.cpp
   parameteranimator.cpp
31
   vector.cpp
32
   kgradientdialog.cpp
33
   calculator.cpp
34
   )
Laurent Montel's avatar
Laurent Montel committed
35

Christoph Feck's avatar
Christoph Feck committed
36
37
38
qt5_add_dbus_adaptor( kmplotpart_PART_SRCS org.kde.kmplot.MainDlg.xml maindlg.h MainDlg)
qt5_add_dbus_adaptor( kmplotpart_PART_SRCS org.kde.kmplot.Parser.xml xparser.h XParser)
qt5_add_dbus_adaptor( kmplotpart_PART_SRCS org.kde.kmplot.View.xml view.h View)
Laurent Montel's avatar
Laurent Montel committed
39

Laurent Montel's avatar
Laurent Montel committed
40
ki18n_wrap_ui(kmplotpart_PART_SRCS
41
	plotstylewidget.ui
David Saxton's avatar
David Saxton committed
42
	initialconditionswidget.ui
43
	functioneditorwidget.ui
44
	editcoords.ui
45
	functiontools.ui
46
	qparametereditor.ui
47
	constantseditor.ui
48
	settingspagecolor.ui
Laurent Montel's avatar
Laurent Montel committed
49
	settingspagefonts.ui
50
	settingspagegeneral.ui
David Saxton's avatar
David Saxton committed
51
	settingspagediagram.ui
52
	sliderwidget.ui
53
	parameterswidget.ui
54
	parameteranimator.ui
55
	equationeditorwidget.ui
Laurent Montel's avatar
Laurent Montel committed
56
57
	)

Laurent Montel's avatar
Laurent Montel committed
58
kconfig_add_kcfg_files(kmplotpart_PART_SRCS settings.kcfgc )
Laurent Montel's avatar
Laurent Montel committed
59

Christoph Feck's avatar
Christoph Feck committed
60
add_library(kmplotpart MODULE ${kmplotpart_PART_SRCS})
61
kcoreaddons_desktop_to_json(kmplotpart kmplot_part.desktop)
Laurent Montel's avatar
Laurent Montel committed
62

Laurent Montel's avatar
Laurent Montel committed
63

Laurent Montel's avatar
Laurent Montel committed
64

65
target_link_libraries(kmplotpart Qt5::PrintSupport Qt5::Widgets KF5::Parts Qt5::Svg)
Laurent Montel's avatar
Laurent Montel committed
66

67
install(TARGETS kmplotpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/parts)
Laurent Montel's avatar
Laurent Montel committed
68

Laurent Montel's avatar
Laurent Montel committed
69
########### next target ###############   
Laurent Montel's avatar
Laurent Montel committed
70

71
set(kmplot_SRCS main.cpp kmplot.cpp kmplotprogress.cpp)
Laurent Montel's avatar
Laurent Montel committed
72
qt5_add_dbus_adaptor(kmplot_SRCS org.kde.kmplot.KmPlot.xml kmplot.h KmPlot)
Laurent Montel's avatar
Laurent Montel committed
73

74
# FIXME: it's wrong, but otherwise it does not compile
Laurent Montel's avatar
Laurent Montel committed
75
kconfig_add_kcfg_files(kmplot_SRCS settings.kcfgc )
76

Albert Astals Cid's avatar
Albert Astals Cid committed
77
78
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-kmplot.png")
ecm_add_app_icon(kmplot_SRCS ICONS ${ICONS_SRCS})
79

Laurent Montel's avatar
Laurent Montel committed
80
add_executable(kmplot ${kmplot_SRCS})
Laurent Montel's avatar
Laurent Montel committed
81

82
target_link_libraries(kmplot Qt5::PrintSupport Qt5::Widgets KF5::Crash KF5::Parts KF5::DBusAddons)
Laurent Montel's avatar
Laurent Montel committed
83

84
install(TARGETS kmplot  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
Laurent Montel's avatar
Laurent Montel committed
85
86
87

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

88
89
90
91
92
93
install( PROGRAMS org.kde.kmplot.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
install( FILES kmplot.kcfg  DESTINATION  ${KDE_INSTALL_KCFGDIR} )
install( FILES kmplot_part.desktop  DESTINATION  ${KDE_INSTALL_KSERVICES5DIR} )
install( FILES kmplot_part.rc kmplot_part_readonly.rc  DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/kmplot )
install( FILES kmplot_shell.rc  DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/kmplot )
install( FILES org.kde.kmplot.KmPlot.xml org.kde.kmplot.MainDlg.xml org.kde.kmplot.Parser.xml org.kde.kmplot.View.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} )
Laurent Montel's avatar
Laurent Montel committed
94
95