summaryrefslogtreecommitdiffstats
path: root/tests/open62541-testserver/open62541-testserver.pro
blob: 1d66aedfffed94480de9c02b718da918de4661e5 (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
TEMPLATE = app
TARGET = open62541-testserver

INCLUDEPATH += \
               $$PWD/../../src/plugins/opcua/open62541

DEPENDPATH += INCLUDEPATH

CONFIG += c++11 console

QT += opcua-private

qtConfig(open62541):!qtConfig(system-open62541) {
    qtConfig(mbedtls):{
        QMAKE_USE_PRIVATE += mbedtls
        DEFINES += UA_ENABLE_ENCRYPTION
    }
    include($$PWD/../../src/3rdparty/open62541.pri)
} else {
    QMAKE_USE_PRIVATE += open62541
}

win32: DESTDIR = ./

# Workaround for QTBUG-75020
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2

# This file  can only be compiled in case of TLS support
qtConfig(mbedtls) {
    # Use custom compiler from src/3rdparty/open62541.pri to hide warning caused by
    # including open62541.h
    OPEN62541_SOURCES += security_addon.cpp
}

SOURCES += \
           main.cpp \
           testserver.cpp \
           $$PWD/../../src/plugins/opcua/open62541/qopen62541utils.cpp \
           $$PWD/../../src/plugins/opcua/open62541/qopen62541valueconverter.cpp


HEADERS += \
           testserver.h \
           security_addon.h \

RESOURCES += certs.qrc