Warning, /frameworks/kquickcharts/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 0002 add_library(QuickCharts) 0003 set_target_properties(QuickCharts PROPERTIES 0004 SOVERSION ${KF6QuickCharts_SOVERSION} 0005 VERSION ${KF6QuickCharts_VERSION} 0006 ) 0007 0008 ecm_add_qml_module(QuickCharts URI "org.kde.quickcharts" VERSION 1.0 GENERATE_PLUGIN_SOURCE) 0009 0010 target_sources(QuickCharts PRIVATE 0011 BarChart.cpp 0012 BarChart.h 0013 Chart.cpp 0014 Chart.h 0015 ItemBuilder.cpp 0016 ItemBuilder.h 0017 LineChart.cpp 0018 LineChart.h 0019 PieChart.cpp 0020 PieChart.h 0021 RangeGroup.cpp 0022 RangeGroup.h 0023 XYChart.cpp 0024 XYChart.h 0025 datasource/ArraySource.cpp 0026 datasource/ArraySource.h 0027 datasource/ChartAxisSource.cpp 0028 datasource/ChartAxisSource.h 0029 datasource/ChartDataSource.cpp 0030 datasource/ChartDataSource.h 0031 datasource/ColorGradientSource.cpp 0032 datasource/ColorGradientSource.h 0033 datasource/HistoryProxySource.cpp 0034 datasource/HistoryProxySource.h 0035 datasource/MapProxySource.cpp 0036 datasource/MapProxySource.h 0037 datasource/ModelSource.cpp 0038 datasource/ModelSource.h 0039 datasource/SingleValueSource.cpp 0040 datasource/SingleValueSource.h 0041 scenegraph/BarChartMaterial.cpp 0042 scenegraph/BarChartMaterial.h 0043 scenegraph/BarChartNode.cpp 0044 scenegraph/BarChartNode.h 0045 scenegraph/LineChartMaterial.cpp 0046 scenegraph/LineChartMaterial.h 0047 scenegraph/LineChartNode.cpp 0048 scenegraph/LineChartNode.h 0049 scenegraph/LineSegmentNode.cpp 0050 scenegraph/LineSegmentNode.h 0051 scenegraph/PieChartMaterial.cpp 0052 scenegraph/PieChartMaterial.h 0053 scenegraph/PieChartNode.cpp 0054 scenegraph/PieChartNode.h 0055 scenegraph/SDFShader.cpp 0056 scenegraph/SDFShader.h 0057 ) 0058 0059 ecm_qt_declare_logging_category(QuickCharts 0060 HEADER charts_general_logging.h 0061 IDENTIFIER GENERAL 0062 CATEGORY_NAME kf.quickcharts.general 0063 DEFAULT_SEVERITY Warning 0064 DESCRIPTION "KQuickCharts Library - General" 0065 EXPORT KQuickCharts 0066 ) 0067 0068 ecm_qt_declare_logging_category(QuickCharts 0069 HEADER charts_datasource_logging.h 0070 IDENTIFIER DATASOURCE 0071 CATEGORY_NAME kf.quickcharts.datasource 0072 DEFAULT_SEVERITY Warning 0073 DESCRIPTION "KQuickCharts Library - Data Sources" 0074 EXPORT KQuickCharts 0075 ) 0076 0077 ecm_qt_declare_logging_category(QuickCharts 0078 HEADER charts_deprecated_logging.h 0079 IDENTIFIER DEPRECATED 0080 CATEGORY_NAME kf.quickcharts.deprecated 0081 DEFAULT_SEVERITY Warning 0082 DESCRIPTION "KQuickCharts Library - Deprecated API" 0083 EXPORT KQuickCharts 0084 ) 0085 0086 target_link_libraries(QuickCharts PUBLIC 0087 Qt6::Core 0088 Qt6::Qml 0089 Qt6::Quick 0090 ) 0091 0092 target_include_directories(QuickCharts PRIVATE 0093 ${CMAKE_CURRENT_SOURCE_DIR}/datasource 0094 ) 0095 0096 if (CMAKE_BUILD_TYPE STREQUAL "Debug") 0097 set(_extra_args DEBUGINFO) 0098 else() 0099 set(_extra_args OPTIMIZED) 0100 endif() 0101 0102 qt6_add_shaders(QuickCharts "shaders" 0103 BATCHABLE 0104 ZORDER_LOC 6 0105 PRECOMPILE 0106 PREFIX "/qt/qml/org/kde/quickcharts/shaders/" 0107 GLSL "300es,130" 0108 FILES 0109 shaders/barchart.vert 0110 shaders/barchart.frag 0111 shaders/linechart.vert 0112 shaders/linechart.frag 0113 shaders/piechart.vert 0114 shaders/piechart.frag 0115 OUTPUTS 0116 barchart.vert.qsb 0117 barchart.frag.qsb 0118 linechart.vert.qsb 0119 linechart.frag.qsb 0120 piechart.vert.qsb 0121 piechart.frag.qsb 0122 ${_extra_args} 0123 ) 0124 0125 ecm_generate_export_header(QuickCharts 0126 BASE_NAME QuickCharts 0127 GROUP_BASE_NAME KF 0128 VERSION ${KF_VERSION} 0129 DEPRECATED_BASE_VERSION 0 0130 DEPRECATION_VERSIONS 0131 EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} 0132 ) 0133 0134 ecm_finalize_qml_module(QuickCharts DESTINATION ${KDE_INSTALL_QMLDIR}) 0135 0136 ecm_qt_install_logging_categories(EXPORT KQuickCharts DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) 0137 0138 install(TARGETS QuickCharts ${KDE_INSTALL_DEFAULT_ARGUMENTS})