CMakeLists.txt 2.08 KB
Newer Older
1
set(analyzer_lib_srcs
2
    core/aggregation.cpp
3
    core/aggregationelement.cpp
4
    core/product.cpp
5
    core/sample.cpp
6
    core/schemaentry.cpp
7
    core/schemaentryelement.cpp
8
    core/schemaentrytemplates.cpp
9
    core/survey.cpp
10
11
12
13

    rest/restapi.cpp
    rest/restclient.cpp
    rest/serverinfo.cpp
14

15
    model/aggregateddatamodel.cpp
16
17
    model/aggregationeditormodel.cpp
    model/aggregationelementmodel.cpp
18
    model/categoryaggregationmodel.cpp
19
    model/datamodel.cpp
20
    model/extrarowsproxymodel.cpp
21
    model/numericaggregationmodel.cpp
22
    model/productmodel.cpp
23
    model/ratiosetaggregationmodel.cpp
Volker Krause's avatar
Volker Krause committed
24
    model/rolemappingproxymodel.cpp
25
    model/schemamodel.cpp
26
    model/singlerowfilterproxymodel.cpp
27
    model/surveymodel.cpp
28
    model/timeaggregationmodel.cpp
29

30
    schematemplates/schematemplates.qrc
31
32
33
34
35
)

add_library(UserFeedbackAnalyzer STATIC ${analyzer_lib_srcs})
target_link_libraries(UserFeedbackAnalyzer Qt5::Network)
target_include_directories(UserFeedbackAnalyzer PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR};>")
36
target_compile_features(UserFeedbackAnalyzer PRIVATE cxx_generic_lambdas)
37

38
39
40
41
if(NOT TARGET UserFeedbackWidgets)
    return()
endif()

42
43
44
45
set(analyzer_srcs
    connectdialog.cpp
    main.cpp
    mainwindow.cpp
46

47
    analytics/aggregator.cpp
48
    analytics/analyticsview.cpp
49
    analytics/categoryaggregator.cpp
50
    analytics/chartutil.cpp
51
52
    analytics/numericaggregator.cpp
    analytics/ratiosetaggregator.cpp
53
    analytics/totalaggregator.cpp
54

55
56
    schemaeditor/aggregationeditwidget.cpp
    schemaeditor/schemaeditor.cpp
57
58
    schemaeditor/schemaeditwidget.cpp
    schemaeditor/schemaentryitemeditorfactory.cpp
59
60
61

    surveyeditor/surveydialog.cpp
    surveyeditor/surveyeditor.cpp
62
63

    widgets/metaenumcombobox.cpp
64
65
)

66
67
68
add_executable(UserFeedbackAnalyzerApplication ${analyzer_srcs})
set_target_properties(UserFeedbackAnalyzerApplication PROPERTIES OUTPUT_NAME UserFeedbackAnalyzer)
target_link_libraries(UserFeedbackAnalyzerApplication Qt5::Widgets Qt5::Network Qt5::Charts UserFeedbackWidgets UserFeedbackAnalyzer)
69

70
install(TARGETS UserFeedbackAnalyzerApplication ${INSTALL_TARGETS_DEFAULT_ARGS})