summaryrefslogtreecommitdiff
path: root/src/webchannel/CMakeLists.txt
blob: 9fba2178c37c147e8173a70d4739c9172129f168 (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
# Generated from webchannel.pro.

#####################################################################
## WebChannel Module:
#####################################################################

qt_add_module(WebChannel
    SOURCES
        qmetaobjectpublisher.cpp qmetaobjectpublisher_p.h
        qwebchannel.cpp qwebchannel.h qwebchannel_p.h
        qwebchannelabstracttransport.cpp qwebchannelabstracttransport.h
        signalhandler_p.h
        variantargument_p.h
    LIBRARIES
        Qt::CorePrivate
    PUBLIC_LIBRARIES
        Qt::Core
    PRIVATE_MODULE_INTERFACE
        Qt::CorePrivate
)

# Resources:
set_source_files_properties("../../examples/webchannel/shared/qwebchannel.js"
    PROPERTIES QT_RESOURCE_ALIAS "qwebchannel.js"
)
set(resources_resource_files
    "../../examples/webchannel/shared/qwebchannel.js"
)

set_source_files_properties(${resources_resource_files} PROPERTIES QT_SKIP_QUICKCOMPILER 1)

qt_add_resource(WebChannel "resources"
    PREFIX
        "/qtwebchannel/"
    FILES
        ${resources_resource_files}
)


#### Keys ignored in scope 1:.:.:webchannel.pro:<TRUE>:
# OTHER_FILES = "qwebchannel.js"

## Scopes:
#####################################################################

qt_extend_target(WebChannel CONDITION TARGET Qt::Qml
    SOURCES
        qqmlwebchannel.cpp
        qqmlwebchannelattached.cpp
    PUBLIC_LIBRARIES
        Qt::Qml
)

#### Keys ignored in scope 2:.:.:webchannel.pro:TARGET Qt::Qml:
# PRIVATE_HEADERS = "qqmlwebchannelattached_p.h"
# PUBLIC_HEADERS = "qqmlwebchannel.h"

qt_extend_target(WebChannel CONDITION NOT TARGET Qt::Qml
    DEFINES
        QT_NO_JSVALUE
)
qt_add_docs(WebChannel
    doc/qtwebchannel.qdocconf
)