summaryrefslogtreecommitdiffstats
path: root/src/httpserver/CMakeLists.txt
blob: a552ca2b48d3af9e7f0274636ac5f2498311fac1 (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
# Generated from httpserver.pro.

#####################################################################
## HttpServer Module:
#####################################################################

qt_add_module(HttpServer
    SOURCES
        ../3rdparty/http-parser/http_parser.c ../3rdparty/http-parser/http_parser.h
        qabstracthttpserver.cpp qabstracthttpserver.h qabstracthttpserver_p.h
        qhttpserver.cpp qhttpserver.h qhttpserver_p.h
        qhttpserverliterals.cpp qhttpserverliterals_p.h
        qhttpserverrequest.cpp qhttpserverrequest.h qhttpserverrequest_p.h
        qhttpserverresponder.cpp qhttpserverresponder.h qhttpserverresponder_p.h
        qhttpserverresponse.cpp qhttpserverresponse.h qhttpserverresponse_p.h
        qhttpserverrouter.cpp qhttpserverrouter.h qhttpserverrouter_p.h
        qhttpserverrouterrule.cpp qhttpserverrouterrule.h qhttpserverrouterrule_p.h
        qhttpserverrouterviewtraits.h
        qhttpserverviewtraits.h
        qhttpserverviewtraits_impl.h
        qthttpserverglobal.h
    INCLUDE_DIRECTORIES
        .
        ../3rdparty/http-parser
    LIBRARIES
        Qt::CorePrivate
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Network
    PRIVATE_MODULE_INTERFACE
        Qt::CorePrivate
)

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

qt_extend_target(HttpServer CONDITION TARGET Qt::WebSockets
    LIBRARIES
        Qt::WebSocketsPrivate
    PUBLIC_LIBRARIES
        Qt::WebSockets
    PRIVATE_MODULE_INTERFACE
        Qt::WebSocketsPrivate
)

qt_extend_target(HttpServer CONDITION QT_FEATURE_ssl
    PUBLIC_LIBRARIES
        Qt::SslServer
)

qt_extend_target(HttpServer CONDITION TARGET Qt::Concurrent
    SOURCES
        qhttpserverfutureresponse.cpp qhttpserverfutureresponse.h
    PUBLIC_LIBRARIES
        Qt::Concurrent
)