diff --git a/src/network/doc/snippets/network/network.pro b/src/network/doc/snippets/network/network.pro new file mode 100644 index 0000000000..7d3d2415ff --- /dev/null +++ b/src/network/doc/snippets/network/network.pro @@ -0,0 +1,6 @@ +TEMPLATE = lib +TARGET = network_snippet +QT = core network + +SOURCES = \ + tcpwait.cpp diff --git a/src/network/doc/snippets/snippets.pro b/src/network/doc/snippets/snippets.pro index d4598f7265..745511da7b 100644 --- a/src/network/doc/snippets/snippets.pro +++ b/src/network/doc/snippets/snippets.pro @@ -1,11 +1,9 @@ -TEMPLATE = app - +TEMPLATE = subdirs TARGET = network_cppsnippets +SUBDIRS = -# ![0] -QT += network -# ![0] +contains(QT_BUILD_PARTS, tests) { + SUBDIRS += \ + network +} -SOURCES += network/tcpwait.cpp - -load(qt_common)