summaryrefslogtreecommitdiffstats
path: root/src/common-lib/CMakeLists.txt
blob: a3e8b232b1586168e2f5d6ba2417c5131e25b87b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91

qt_find_package(WrapLibYaml PROVIDED_TARGETS WrapLibYaml::WrapLibYaml)
if(TARGET WrapBacktrace::WrapBacktrace)
    qt_internal_disable_find_package_global_promotion(WrapBacktrace::WrapBacktrace)
endif()
qt_find_package(WrapBacktrace PROVIDED_TARGETS WrapBacktrace::WrapBacktrace)

qt_internal_add_module(AppManCommonPrivate
    CONFIG_MODULE_NAME appman_common
    STATIC
    EXCEPTIONS
    INTERNAL_MODULE
    SOURCES
        architecture.cpp architecture.h
        colorprint.h colorprint.cpp
        configcache.cpp configcache.h configcache_p.h
        console.h console.cpp
        crashhandler.cpp crashhandler.h
        dbus-utilities.cpp dbus-utilities.h
        error.h
        exception.cpp exception.h
        filesystemmountwatcher.cpp filesystemmountwatcher.h
        global.h
        logging.cpp logging.h
        openglconfiguration.h openglconfiguration.cpp
        processtitle.cpp processtitle.h
        qml-utilities.cpp qml-utilities.h
        qtyaml.cpp qtyaml.h
        unixsignalhandler.cpp unixsignalhandler.h
        utilities.cpp utilities.h
    LIBRARIES
        Qt::CorePrivate
        Qt::QmlPrivate
    PUBLIC_LIBRARIES
        Qt::Concurrent
        Qt::Core
        Qt::Network
        Qt::Qml
    DEFINES
        AM_COMPILING_APPMAN
)

qt_internal_extend_target(AppManCommonPrivate CONDITION QT_FEATURE_am_dltlogging
    PUBLIC_LIBRARIES
        Qt::DltLogging
)

qt_internal_extend_target(AppManCommonPrivate CONDITION TARGET Qt::DBus
    PUBLIC_LIBRARIES
        Qt::DBus
)

qt_internal_extend_target(AppManCommonPrivate CONDITION LINUX
    PUBLIC_LIBRARIES
        dl
)

qt_internal_extend_target(AppManCommonPrivate CONDITION QNX
    PUBLIC_LIBRARIES
        backtrace
)

qt_internal_extend_target(AppManCommonPrivate CONDITION TARGET WrapBacktrace::WrapBacktrace
    PUBLIC_LIBRARIES
        WrapBacktrace::WrapBacktrace
)

qt_internal_extend_target(AppManCommonPrivate CONDITION QT_FEATURE_am_libbacktrace
    LIBRARIES
        Qt::BundledBacktrace
)

qt_internal_extend_target(AppManCommonPrivate CONDITION QT_FEATURE_am_stackwalker
    LIBRARIES
        Qt::BundledStackwalker
)

qt_internal_extend_target(AppManCommonPrivate CONDITION QT_FEATURE_am_system_libyaml
    LIBRARIES
        WrapLibYaml::WrapLibYaml
)

qt_internal_extend_target(AppManCommonPrivate CONDITION NOT QT_FEATURE_am_system_libyaml
    LIBRARIES
        Qt::BundledLibYaml
)

qt_internal_extend_target(AppManCommonPrivate CONDITION AM_COVERAGE
    LIBRARIES
        gcov
)