CMakeLists.txt 1.74 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
16
    model/aggregationeditormodel.cpp
    model/aggregationelementmodel.cpp
17
    model/categoryaggregationmodel.cpp
18
    model/datamodel.cpp
19
    model/numericaggregationmodel.cpp
20
    model/productmodel.cpp
21
    model/ratiosetaggregationmodel.cpp
22
    model/schemamodel.cpp
23
    model/surveymodel.cpp
24
    model/timeaggregationmodel.cpp
25
26

    schemaentrytemplates/schemaentrytemplates.qrc
27
28
29
30
31
)

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

34
set(analyzer_srcs
35
    aggregateddatamodel.cpp
Volker Krause's avatar
Volker Krause committed
36
    chart.cpp
37
38
39
    connectdialog.cpp
    main.cpp
    mainwindow.cpp
40

41
42
    analytics/analyticsview.cpp

43
44
    schemaeditor/aggregationeditwidget.cpp
    schemaeditor/schemaeditor.cpp
45
46
    schemaeditor/schemaeditwidget.cpp
    schemaeditor/schemaentryitemeditorfactory.cpp
47
48
49

    surveyeditor/surveydialog.cpp
    surveyeditor/surveyeditor.cpp
50
51

    widgets/metaenumcombobox.cpp
52
53
)

54
55
56
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)
57

58
install(TARGETS UserFeedbackAnalyzerApplication ${INSTALL_TARGETS_DEFAULT_ARGS})