Warning, /education/kmplot/kmplot/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 0002 add_definitions(-DTRANSLATION_DOMAIN=\"kmplot\") 0003 0004 0005 ########### next target ############### 0006 0007 set(kmplotpart_PART_SRCS 0008 plotstylewidget.cpp 0009 initialconditionseditor.cpp 0010 functioneditor.cpp 0011 constants.cpp 0012 parser.cpp 0013 xparser.cpp 0014 equationedit.cpp 0015 equationeditwidget.cpp 0016 equationhighlighter.cpp 0017 equationeditorwidget.cpp 0018 equationeditor.cpp 0019 function.cpp 0020 view.cpp 0021 maindlg.cpp 0022 kprinterdlg.cpp 0023 kconstanteditor.cpp 0024 kparametereditor.cpp 0025 functiontools.cpp 0026 kmplotio.cpp 0027 ksliderwindow.cpp 0028 parameterswidget.cpp 0029 coordsconfigdialog.cpp 0030 parameteranimator.cpp 0031 vector.cpp 0032 kgradientdialog.cpp 0033 calculator.cpp 0034 0035 kmplot_part.qrc 0036 ) 0037 0038 qt_add_dbus_adaptor( kmplotpart_PART_SRCS org.kde.kmplot.MainDlg.xml maindlg.h MainDlg) 0039 qt_add_dbus_adaptor( kmplotpart_PART_SRCS org.kde.kmplot.Parser.xml xparser.h XParser) 0040 qt_add_dbus_adaptor( kmplotpart_PART_SRCS org.kde.kmplot.View.xml view.h View) 0041 0042 ki18n_wrap_ui(kmplotpart_PART_SRCS 0043 plotstylewidget.ui 0044 initialconditionswidget.ui 0045 functioneditorwidget.ui 0046 editcoords.ui 0047 functiontools.ui 0048 qparametereditor.ui 0049 constantseditor.ui 0050 settingspagecolor.ui 0051 settingspagefonts.ui 0052 settingspagegeneral.ui 0053 settingspagediagram.ui 0054 sliderwidget.ui 0055 parameterswidget.ui 0056 parameteranimator.ui 0057 equationeditorwidget.ui 0058 ) 0059 0060 kconfig_add_kcfg_files(kmplotpart_PART_SRCS settings.kcfgc ) 0061 0062 add_library(kmplotpart MODULE ${kmplotpart_PART_SRCS}) 0063 0064 target_link_libraries(kmplotpart Qt::PrintSupport Qt::Widgets KF${QT_MAJOR_VERSION}::I18n KF${QT_MAJOR_VERSION}::TextWidgets KF${QT_MAJOR_VERSION}::Parts KF${QT_MAJOR_VERSION}::JobWidgets KF${QT_MAJOR_VERSION}::Completion Qt::Svg) 0065 0066 install(TARGETS kmplotpart DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf${QT_MAJOR_VERSION}/parts) 0067 0068 ########### next target ############### 0069 0070 set(kmplot_SRCS 0071 main.cpp 0072 kmplot.cpp 0073 kmplotprogress.cpp 0074 0075 kmplot.qrc 0076 ) 0077 qt_add_dbus_adaptor(kmplot_SRCS org.kde.kmplot.KmPlot.xml kmplot.h KmPlot) 0078 0079 # FIXME: it's wrong, but otherwise it does not compile 0080 kconfig_add_kcfg_files(kmplot_SRCS settings.kcfgc ) 0081 0082 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-kmplot.png") 0083 ecm_add_app_icon(kmplot_SRCS ICONS ${ICONS_SRCS}) 0084 0085 add_executable(kmplot ${kmplot_SRCS}) 0086 0087 target_link_libraries(kmplot Qt::PrintSupport Qt::Widgets KF${QT_MAJOR_VERSION}::I18n KF${QT_MAJOR_VERSION}::TextWidgets KF${QT_MAJOR_VERSION}::Crash KF${QT_MAJOR_VERSION}::Parts KF${QT_MAJOR_VERSION}::DBusAddons KF${QT_MAJOR_VERSION}::JobWidgets KF${QT_MAJOR_VERSION}::Completion KF${QT_MAJOR_VERSION}::KIOGui) 0088 0089 install(TARGETS kmplot ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0090 0091 if(APPLE) 0092 set_target_properties(kmplot PROPERTIES 0093 MACOSX_BUNDLE_DISPLAY_NAME "KmPlot" 0094 MACOSX_BUNDLE_BUNDLE_NAME "KmPlot" 0095 MACOSX_BUNDLE_LONG_VERSION_STRING "KmPlot ${RELEASE_SERVICE_VERSION}" 0096 MACOSX_BUNDLE_SHORT_VERSION_STRING "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}" 0097 MACOSX_BUNDLE_BUNDLE_VERSION "${RELEASE_SERVICE_VERSION}" 0098 MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.kmplot" 0099 MACOSX_BUNDLE_COPYRIGHT "2000-2024 The KmPlot Developers") 0100 0101 endif() 0102 0103 0104 ########### install files ############### 0105 0106 install( PROGRAMS org.kde.kmplot.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0107 install( FILES kmplot.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} ) 0108 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} ) 0109 0110 if (QT_MAJOR_VERSION STREQUAL "5") 0111 install( FILES kmplot_part.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR} ) 0112 endif()