1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
QT += core websockets QT -= gui TARGET = echoserver CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += \ main.cpp \ echoserver.cpp HEADERS += \ echoserver.h EXAMPLE_FILES += echoclient.html target.path = $$[QT_INSTALL_EXAMPLES]/websockets/echoserver INSTALLS += target