From 64c6c943c7469c60e8d25c3efd630249740ae2f4 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 18 Mar 2019 19:26:24 +0100 Subject: CMake: Add more examples Change-Id: I7a8a3fd0a844a518592957fe07c6e707dd452d5f Reviewed-by: Alexandru Croitor --- examples/CMakeLists.txt | 21 +++++++++- examples/corelib/CMakeLists.txt | 7 ++++ examples/corelib/ipc/CMakeLists.txt | 14 +++++++ .../corelib/ipc/localfortuneclient/CMakeLists.txt | 17 ++++++++ .../corelib/ipc/localfortuneserver/CMakeLists.txt | 17 ++++++++ examples/corelib/ipc/sharedmemory/CMakeLists.txt | 19 +++++++++ examples/corelib/mimetypes/CMakeLists.txt | 6 +++ .../mimetypes/mimetypebrowser/CMakeLists.txt | 21 ++++++++++ examples/corelib/serialization/CMakeLists.txt | 5 +++ .../corelib/serialization/cbordump/CMakeLists.txt | 19 +++++++++ .../corelib/serialization/convert/CMakeLists.txt | 26 +++++++++++++ .../corelib/serialization/savegame/CMakeLists.txt | 22 +++++++++++ examples/corelib/threads/CMakeLists.txt | 9 +++++ examples/corelib/threads/mandelbrot/CMakeLists.txt | 25 ++++++++++++ .../threads/queuedcustomtype/CMakeLists.txt | 18 +++++++++ examples/corelib/threads/semaphores/CMakeLists.txt | 15 ++++++++ .../corelib/threads/waitconditions/CMakeLists.txt | 15 ++++++++ examples/corelib/tools/CMakeLists.txt | 5 +++ .../corelib/tools/contiguouscache/CMakeLists.txt | 16 ++++++++ examples/corelib/tools/customtype/CMakeLists.txt | 16 ++++++++ .../corelib/tools/customtypesending/CMakeLists.txt | 17 ++++++++ examples/dbus/CMakeLists.txt | 13 +++++++ examples/dbus/chat/CMakeLists.txt | 22 +++++++++++ examples/dbus/complexpingpong/CMakeLists.txt | 16 ++++++++ examples/dbus/listnames/CMakeLists.txt | 22 +++++++++++ examples/dbus/pingpong/CMakeLists.txt | 35 +++++++++++++++++ examples/dbus/remotecontrolledcar/CMakeLists.txt | 4 ++ .../dbus/remotecontrolledcar/car/CMakeLists.txt | 19 +++++++++ .../remotecontrolledcar/controller/CMakeLists.txt | 19 +++++++++ examples/embedded/CMakeLists.txt | 8 ++++ examples/embedded/digiflip/CMakeLists.txt | 15 ++++++++ examples/embedded/flickable/CMakeLists.txt | 16 ++++++++ examples/embedded/flightinfo/CMakeLists.txt | 25 ++++++++++++ examples/embedded/lightmaps/CMakeLists.txt | 22 +++++++++++ examples/embedded/raycasting/CMakeLists.txt | 23 +++++++++++ examples/embedded/styleexample/CMakeLists.txt | 28 ++++++++++++++ examples/gui/CMakeLists.txt | 7 ++++ examples/gui/analogclock/CMakeLists.txt | 21 ++++++++++ examples/gui/openglwindow/CMakeLists.txt | 18 +++++++++ examples/gui/rasterwindow/CMakeLists.txt | 20 ++++++++-- examples/network/CMakeLists.txt | 45 ++++++++++++++++++++++ examples/network/bearermonitor/CMakeLists.txt | 31 +++++++++++++++ .../network/blockingfortuneclient/CMakeLists.txt | 18 +++++++++ examples/network/broadcastreceiver/CMakeLists.txt | 17 ++++++++ examples/network/broadcastsender/CMakeLists.txt | 17 ++++++++ examples/network/dnslookup/CMakeLists.txt | 27 +++++++++++++ examples/network/download/CMakeLists.txt | 18 +++++++++ examples/network/downloadmanager/CMakeLists.txt | 21 ++++++++++ examples/network/fortuneclient/CMakeLists.txt | 17 ++++++++ examples/network/fortuneserver/CMakeLists.txt | 17 ++++++++ examples/network/googlesuggest/CMakeLists.txt | 18 +++++++++ examples/network/http/CMakeLists.txt | 18 +++++++++ examples/network/loopback/CMakeLists.txt | 17 ++++++++ examples/network/multicastreceiver/CMakeLists.txt | 17 ++++++++ examples/network/multicastsender/CMakeLists.txt | 17 ++++++++ examples/network/multistreamclient/CMakeLists.txt | 21 ++++++++++ examples/network/multistreamserver/CMakeLists.txt | 24 ++++++++++++ examples/network/network-chat/CMakeLists.txt | 21 ++++++++++ examples/network/securesocketclient/CMakeLists.txt | 24 ++++++++++++ examples/network/secureudpclient/CMakeLists.txt | 22 +++++++++++ examples/network/secureudpserver/CMakeLists.txt | 22 +++++++++++ .../network/threadedfortuneserver/CMakeLists.txt | 19 +++++++++ examples/network/torrent/CMakeLists.txt | 42 ++++++++++++++++++++ examples/qpa/CMakeLists.txt | 4 ++ examples/qpa/qrasterwindow/CMakeLists.txt | 15 ++++++++ examples/qpa/windows/CMakeLists.txt | 19 +++++++++ examples/qtconcurrent/CMakeLists.txt | 9 +++++ examples/qtconcurrent/imagescaling/CMakeLists.txt | 17 ++++++++ examples/qtconcurrent/map/CMakeLists.txt | 20 ++++++++++ .../qtconcurrent/progressdialog/CMakeLists.txt | 18 +++++++++ examples/qtconcurrent/runfunction/CMakeLists.txt | 19 +++++++++ examples/qtconcurrent/wordcount/CMakeLists.txt | 19 +++++++++ examples/qtestlib/CMakeLists.txt | 7 ++++ examples/qtestlib/tutorial1/CMakeLists.txt | 16 ++++++++ examples/qtestlib/tutorial2/CMakeLists.txt | 16 ++++++++ examples/qtestlib/tutorial3/CMakeLists.txt | 16 ++++++++ examples/qtestlib/tutorial4/CMakeLists.txt | 16 ++++++++ examples/qtestlib/tutorial5/CMakeLists.txt | 16 ++++++++ examples/sql/CMakeLists.txt | 17 ++++++++ examples/sql/books/CMakeLists.txt | 30 +++++++++++++++ examples/sql/cachedtable/CMakeLists.txt | 18 +++++++++ examples/sql/drilldown/CMakeLists.txt | 28 ++++++++++++++ examples/sql/masterdetail/CMakeLists.txt | 30 +++++++++++++++ examples/sql/querymodel/CMakeLists.txt | 19 +++++++++ examples/sql/relationaltablemodel/CMakeLists.txt | 17 ++++++++ examples/sql/sqlbrowser/CMakeLists.txt | 29 ++++++++++++++ examples/sql/sqlwidgetmapper/CMakeLists.txt | 17 ++++++++ examples/sql/tablemodel/CMakeLists.txt | 17 ++++++++ 88 files changed, 1637 insertions(+), 5 deletions(-) create mode 100644 examples/corelib/CMakeLists.txt create mode 100644 examples/corelib/ipc/CMakeLists.txt create mode 100644 examples/corelib/ipc/localfortuneclient/CMakeLists.txt create mode 100644 examples/corelib/ipc/localfortuneserver/CMakeLists.txt create mode 100644 examples/corelib/ipc/sharedmemory/CMakeLists.txt create mode 100644 examples/corelib/mimetypes/CMakeLists.txt create mode 100644 examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt create mode 100644 examples/corelib/serialization/CMakeLists.txt create mode 100644 examples/corelib/serialization/cbordump/CMakeLists.txt create mode 100644 examples/corelib/serialization/convert/CMakeLists.txt create mode 100644 examples/corelib/serialization/savegame/CMakeLists.txt create mode 100644 examples/corelib/threads/CMakeLists.txt create mode 100644 examples/corelib/threads/mandelbrot/CMakeLists.txt create mode 100644 examples/corelib/threads/queuedcustomtype/CMakeLists.txt create mode 100644 examples/corelib/threads/semaphores/CMakeLists.txt create mode 100644 examples/corelib/threads/waitconditions/CMakeLists.txt create mode 100644 examples/corelib/tools/CMakeLists.txt create mode 100644 examples/corelib/tools/contiguouscache/CMakeLists.txt create mode 100644 examples/corelib/tools/customtype/CMakeLists.txt create mode 100644 examples/corelib/tools/customtypesending/CMakeLists.txt create mode 100644 examples/dbus/CMakeLists.txt create mode 100644 examples/dbus/chat/CMakeLists.txt create mode 100644 examples/dbus/complexpingpong/CMakeLists.txt create mode 100644 examples/dbus/listnames/CMakeLists.txt create mode 100644 examples/dbus/pingpong/CMakeLists.txt create mode 100644 examples/dbus/remotecontrolledcar/CMakeLists.txt create mode 100644 examples/dbus/remotecontrolledcar/car/CMakeLists.txt create mode 100644 examples/dbus/remotecontrolledcar/controller/CMakeLists.txt create mode 100644 examples/embedded/CMakeLists.txt create mode 100644 examples/embedded/digiflip/CMakeLists.txt create mode 100644 examples/embedded/flickable/CMakeLists.txt create mode 100644 examples/embedded/flightinfo/CMakeLists.txt create mode 100644 examples/embedded/lightmaps/CMakeLists.txt create mode 100644 examples/embedded/raycasting/CMakeLists.txt create mode 100644 examples/embedded/styleexample/CMakeLists.txt create mode 100644 examples/gui/analogclock/CMakeLists.txt create mode 100644 examples/gui/openglwindow/CMakeLists.txt create mode 100644 examples/network/CMakeLists.txt create mode 100644 examples/network/bearermonitor/CMakeLists.txt create mode 100644 examples/network/blockingfortuneclient/CMakeLists.txt create mode 100644 examples/network/broadcastreceiver/CMakeLists.txt create mode 100644 examples/network/broadcastsender/CMakeLists.txt create mode 100644 examples/network/dnslookup/CMakeLists.txt create mode 100644 examples/network/download/CMakeLists.txt create mode 100644 examples/network/downloadmanager/CMakeLists.txt create mode 100644 examples/network/fortuneclient/CMakeLists.txt create mode 100644 examples/network/fortuneserver/CMakeLists.txt create mode 100644 examples/network/googlesuggest/CMakeLists.txt create mode 100644 examples/network/http/CMakeLists.txt create mode 100644 examples/network/loopback/CMakeLists.txt create mode 100644 examples/network/multicastreceiver/CMakeLists.txt create mode 100644 examples/network/multicastsender/CMakeLists.txt create mode 100644 examples/network/multistreamclient/CMakeLists.txt create mode 100644 examples/network/multistreamserver/CMakeLists.txt create mode 100644 examples/network/network-chat/CMakeLists.txt create mode 100644 examples/network/securesocketclient/CMakeLists.txt create mode 100644 examples/network/secureudpclient/CMakeLists.txt create mode 100644 examples/network/secureudpserver/CMakeLists.txt create mode 100644 examples/network/threadedfortuneserver/CMakeLists.txt create mode 100644 examples/network/torrent/CMakeLists.txt create mode 100644 examples/qpa/CMakeLists.txt create mode 100644 examples/qpa/qrasterwindow/CMakeLists.txt create mode 100644 examples/qpa/windows/CMakeLists.txt create mode 100644 examples/qtconcurrent/CMakeLists.txt create mode 100644 examples/qtconcurrent/imagescaling/CMakeLists.txt create mode 100644 examples/qtconcurrent/map/CMakeLists.txt create mode 100644 examples/qtconcurrent/progressdialog/CMakeLists.txt create mode 100644 examples/qtconcurrent/runfunction/CMakeLists.txt create mode 100644 examples/qtconcurrent/wordcount/CMakeLists.txt create mode 100644 examples/qtestlib/CMakeLists.txt create mode 100644 examples/qtestlib/tutorial1/CMakeLists.txt create mode 100644 examples/qtestlib/tutorial2/CMakeLists.txt create mode 100644 examples/qtestlib/tutorial3/CMakeLists.txt create mode 100644 examples/qtestlib/tutorial4/CMakeLists.txt create mode 100644 examples/qtestlib/tutorial5/CMakeLists.txt create mode 100644 examples/sql/CMakeLists.txt create mode 100644 examples/sql/books/CMakeLists.txt create mode 100644 examples/sql/cachedtable/CMakeLists.txt create mode 100644 examples/sql/drilldown/CMakeLists.txt create mode 100644 examples/sql/masterdetail/CMakeLists.txt create mode 100644 examples/sql/querymodel/CMakeLists.txt create mode 100644 examples/sql/relationaltablemodel/CMakeLists.txt create mode 100644 examples/sql/sqlbrowser/CMakeLists.txt create mode 100644 examples/sql/sqlwidgetmapper/CMakeLists.txt create mode 100644 examples/sql/tablemodel/CMakeLists.txt diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4eaab5064f..71050b5790 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,3 +1,22 @@ -if(QT_FEATURE_gui) +add_subdirectory(corelib) +add_subdirectory(embedded) +add_subdirectory(qpa) + +if(TARGET Qt::DBus) + add_subdirectory(dbus) +endif() +if(TARGET Qt::Network) + add_subdirectory(network) +endif() +if(TARGET Qt::Test) + add_subdirectory(qtestlib) +endif() +if(TARGET Qt::Concurrent) + add_subdirectory(qtconcurrent) +endif() +if(TARGET Qt::Sql) + add_subdirectory(sql) +endif() +if(TARGET Qt::Gui) add_subdirectory(gui) endif() diff --git a/examples/corelib/CMakeLists.txt b/examples/corelib/CMakeLists.txt new file mode 100644 index 0000000000..3b61d307d9 --- /dev/null +++ b/examples/corelib/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from corelib.pro. + +add_subdirectory(ipc) +add_subdirectory(mimetypes) +add_subdirectory(serialization) +add_subdirectory(threads) +add_subdirectory(tools) diff --git a/examples/corelib/ipc/CMakeLists.txt b/examples/corelib/ipc/CMakeLists.txt new file mode 100644 index 0000000000..b134a3aa17 --- /dev/null +++ b/examples/corelib/ipc/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from ipc.pro. + + +if(QT_FEATURE_sharedmemory) + add_subdirectory(sharedmemory) +endif() + +if(TARGET Qt::Network) + + if(QT_FEATURE_localserver) + add_subdirectory(localfortuneserver) + add_subdirectory(localfortuneclient) + endif() +endif() diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt new file mode 100644 index 0000000000..39ef3f4e3f --- /dev/null +++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from localfortuneclient.pro. + +##################################################################### +## localfortuneclient Binary: +##################################################################### + +add_qt_executable(localfortuneclient + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient" + SOURCES + client.cpp client.h + main.cpp + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt new file mode 100644 index 0000000000..e94028413e --- /dev/null +++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from localfortuneserver.pro. + +##################################################################### +## localfortuneserver Binary: +##################################################################### + +add_qt_executable(localfortuneserver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver" + SOURCES + main.cpp + server.cpp server.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt new file mode 100644 index 0000000000..125cfbd243 --- /dev/null +++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from sharedmemory.pro. + +##################################################################### +## sharedmemory Binary: +##################################################################### + +add_qt_executable(sharedmemory + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory" + SOURCES + dialog.cpp dialog.h dialog.ui + main.cpp + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:sharedmemory.pro:: +# EXAMPLE_FILES = "*.png" diff --git a/examples/corelib/mimetypes/CMakeLists.txt b/examples/corelib/mimetypes/CMakeLists.txt new file mode 100644 index 0000000000..0b31e0db69 --- /dev/null +++ b/examples/corelib/mimetypes/CMakeLists.txt @@ -0,0 +1,6 @@ +# Generated from mimetypes.pro. + + +if(TARGET Qt::Widgets) + add_subdirectory(mimetypebrowser) +endif() diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt new file mode 100644 index 0000000000..4bd2b5ca6a --- /dev/null +++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from mimetypebrowser.pro. + +##################################################################### +## mimetypebrowser Binary: +##################################################################### + +add_qt_executable(mimetypebrowser + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/mimetypes/mimetypebrowser" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h + mimetypemodel.cpp mimetypemodel.h + LIBRARIES + Qt::Widgets +) + +#### Keys ignored in scope 1:.:mimetypebrowser.pro:: +# CONFIG = "-app_bundle" "c++11" +# TEMPLATE = "app" diff --git a/examples/corelib/serialization/CMakeLists.txt b/examples/corelib/serialization/CMakeLists.txt new file mode 100644 index 0000000000..a64b5130d2 --- /dev/null +++ b/examples/corelib/serialization/CMakeLists.txt @@ -0,0 +1,5 @@ +# Generated from serialization.pro. + +add_subdirectory(cbordump) +add_subdirectory(convert) +add_subdirectory(savegame) diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt new file mode 100644 index 0000000000..b62181a2b7 --- /dev/null +++ b/examples/corelib/serialization/cbordump/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from cbordump.pro. + +##################################################################### +## cbordump Binary: +##################################################################### + +add_qt_executable(cbordump + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/cbordump" + SOURCES + main.cpp + LIBRARIES + # Remove: gui +) + +#### Keys ignored in scope 1:.:cbordump.pro:: +# CONFIG = "-app_bundle" +# TEMPLATE = "app" diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt new file mode 100644 index 0000000000..4dffb69c5b --- /dev/null +++ b/examples/corelib/serialization/convert/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from convert.pro. + +##################################################################### +## convert Binary: +##################################################################### + +add_qt_executable(convert + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/convert" + SOURCES + cborconverter.cpp cborconverter.h + converter.h + datastreamconverter.cpp datastreamconverter.h + jsonconverter.cpp jsonconverter.h + main.cpp + nullconverter.cpp nullconverter.h + textconverter.cpp textconverter.h + xmlconverter.cpp xmlconverter.h + LIBRARIES + # Remove: gui +) + +#### Keys ignored in scope 1:.:convert.pro:: +# CONFIG = "-app_bundle" +# TEMPLATE = "app" diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt new file mode 100644 index 0000000000..175fca270f --- /dev/null +++ b/examples/corelib/serialization/savegame/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from savegame.pro. + +##################################################################### +## savegame Binary: +##################################################################### + +add_qt_executable(savegame + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/serialization/savegame" + SOURCES + character.cpp character.h + game.cpp game.h + level.cpp level.h + main.cpp + LIBRARIES + # Remove: gui +) + +#### Keys ignored in scope 1:.:savegame.pro:: +# CONFIG = "-app_bundle" +# TEMPLATE = "app" diff --git a/examples/corelib/threads/CMakeLists.txt b/examples/corelib/threads/CMakeLists.txt new file mode 100644 index 0000000000..b13dd16d93 --- /dev/null +++ b/examples/corelib/threads/CMakeLists.txt @@ -0,0 +1,9 @@ +# Generated from threads.pro. + +add_subdirectory(semaphores) +add_subdirectory(waitconditions) + +if(TARGET Qt::Widgets) + add_subdirectory(mandelbrot) + add_subdirectory(queuedcustomtype) +endif() diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt new file mode 100644 index 0000000000..00f27bacd9 --- /dev/null +++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from mandelbrot.pro. + +##################################################################### +## mandelbrot Binary: +##################################################################### + +add_qt_executable(mandelbrot + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot" + SOURCES + main.cpp + mandelbrotwidget.cpp mandelbrotwidget.h + renderthread.cpp renderthread.h + LIBRARIES + Qt::Widgets +) + +## Scopes: +##################################################################### + +extend_target(mandelbrot CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS + LIBRARIES + m +) diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt new file mode 100644 index 0000000000..b86092bf26 --- /dev/null +++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from queuedcustomtype.pro. + +##################################################################### +## queuedcustomtype Binary: +##################################################################### + +add_qt_executable(queuedcustomtype + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype" + SOURCES + block.cpp block.h + main.cpp + renderthread.cpp renderthread.h + window.cpp window.h + LIBRARIES + Qt::Widgets +) diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt new file mode 100644 index 0000000000..d94f1ba5b4 --- /dev/null +++ b/examples/corelib/threads/semaphores/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from semaphores.pro. + +##################################################################### +## semaphores Binary: +##################################################################### + +add_qt_executable(semaphores + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores" + SOURCES + semaphores.cpp +) + +#### Keys ignored in scope 1:.:semaphores.pro:: +# CONFIG = "-app_bundle" "console" diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt new file mode 100644 index 0000000000..0a347c1cdd --- /dev/null +++ b/examples/corelib/threads/waitconditions/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from waitconditions.pro. + +##################################################################### +## waitconditions Binary: +##################################################################### + +add_qt_executable(waitconditions + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions" + SOURCES + waitconditions.cpp +) + +#### Keys ignored in scope 1:.:waitconditions.pro:: +# CONFIG = "-moc" "-app_bundle" "console" diff --git a/examples/corelib/tools/CMakeLists.txt b/examples/corelib/tools/CMakeLists.txt new file mode 100644 index 0000000000..d25014ee3c --- /dev/null +++ b/examples/corelib/tools/CMakeLists.txt @@ -0,0 +1,5 @@ +# Generated from tools.pro. + +add_subdirectory(contiguouscache) +add_subdirectory(customtype) +add_subdirectory(customtypesending) diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt new file mode 100644 index 0000000000..68afb7221d --- /dev/null +++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from contiguouscache.pro. + +##################################################################### +## contiguouscache Binary: +##################################################################### + +add_qt_executable(contiguouscache + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/contiguouscache" + SOURCES + main.cpp + randomlistmodel.cpp randomlistmodel.h + LIBRARIES + Qt::Widgets +) diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt new file mode 100644 index 0000000000..e26846da82 --- /dev/null +++ b/examples/corelib/tools/customtype/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from customtype.pro. + +##################################################################### +## customtype Binary: +##################################################################### + +add_qt_executable(customtype + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtype" + SOURCES + main.cpp + message.cpp message.h + LIBRARIES + Qt::Widgets +) diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt new file mode 100644 index 0000000000..a069f73507 --- /dev/null +++ b/examples/corelib/tools/customtypesending/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from customtypesending.pro. + +##################################################################### +## customtypesending Binary: +##################################################################### + +add_qt_executable(customtypesending + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/tools/customtypesending" + SOURCES + main.cpp + message.cpp message.h + window.cpp window.h + LIBRARIES + Qt::Widgets +) diff --git a/examples/dbus/CMakeLists.txt b/examples/dbus/CMakeLists.txt new file mode 100644 index 0000000000..42a3df658a --- /dev/null +++ b/examples/dbus/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from dbus.pro. + +add_subdirectory(listnames) +add_subdirectory(pingpong) + +if(QT_FEATURE_process) + add_subdirectory(complexpingpong) +endif() + +if(TARGET Qt::Widgets) + add_subdirectory(chat) + add_subdirectory(remotecontrolledcar) +endif() diff --git a/examples/dbus/chat/CMakeLists.txt b/examples/dbus/chat/CMakeLists.txt new file mode 100644 index 0000000000..68abe95da6 --- /dev/null +++ b/examples/dbus/chat/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from chat.pro. + +##################################################################### +## chat Binary: +##################################################################### + +add_qt_executable(chat + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/chat" + SOURCES + chat.cpp chat.h + chatmainwindow.ui + chatsetnickname.ui + DBUS_ADAPTOR_SOURCES + org.example.chat.xml + DBUS_INTERFACE_SOURCES + org.example.chat.xml + LIBRARIES + Qt::DBus + Qt::Widgets +) diff --git a/examples/dbus/complexpingpong/CMakeLists.txt b/examples/dbus/complexpingpong/CMakeLists.txt new file mode 100644 index 0000000000..cccb9584af --- /dev/null +++ b/examples/dbus/complexpingpong/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from complexpong.pro. + +##################################################################### +## complexpong Binary: +##################################################################### + +add_qt_executable(complexpong + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/complexpingpong" + SOURCES + complexpong.cpp complexpong.h + LIBRARIES + # Remove: gui + Qt::DBus +) diff --git a/examples/dbus/listnames/CMakeLists.txt b/examples/dbus/listnames/CMakeLists.txt new file mode 100644 index 0000000000..eb622b0ef6 --- /dev/null +++ b/examples/dbus/listnames/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from listnames.pro. + +##################################################################### +## listnames Binary: +##################################################################### + +add_qt_executable(listnames + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/listnames" + SOURCES + listnames.cpp + LIBRARIES + # Remove: gui + Qt::DBus +) + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:listnames.pro:WIN32: +# CONFIG = "console" diff --git a/examples/dbus/pingpong/CMakeLists.txt b/examples/dbus/pingpong/CMakeLists.txt new file mode 100644 index 0000000000..0979c8d487 --- /dev/null +++ b/examples/dbus/pingpong/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from pingpong.pro. + +##################################################################### +## ping Binary: +##################################################################### + +add_qt_executable(ping + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong" + SOURCES + ping.cpp + ping-common.h + LIBRARIES + # Remove: gui + Qt::DBus +) +##################################################################### +## pong Binary: +##################################################################### + +add_qt_executable(pong + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/pingpong" + SOURCES + ping-common.h + pong.cpp pong.h + LIBRARIES + # Remove: gui + Qt::DBus +) + +if(WIN32) +endif() diff --git a/examples/dbus/remotecontrolledcar/CMakeLists.txt b/examples/dbus/remotecontrolledcar/CMakeLists.txt new file mode 100644 index 0000000000..4d41919962 --- /dev/null +++ b/examples/dbus/remotecontrolledcar/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from remotecontrolledcar.pro. + +add_subdirectory(car) +add_subdirectory(controller) diff --git a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt new file mode 100644 index 0000000000..a8aed5413a --- /dev/null +++ b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from car.pro. + +##################################################################### +## car Binary: +##################################################################### + +add_qt_executable(car + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/car" + SOURCES + car.cpp car.h + main.cpp + DBUS_ADAPTOR_SOURCES + car.xml + LIBRARIES + Qt::DBus + Qt::Widgets +) diff --git a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt new file mode 100644 index 0000000000..c9902e2519 --- /dev/null +++ b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from controller.pro. + +##################################################################### +## controller Binary: +##################################################################### + +add_qt_executable(controller + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/dbus/remotecontrolledcar/controller" + SOURCES + controller.cpp controller.h controller.ui + main.cpp + DBUS_INTERFACE_SOURCES + car.xml + LIBRARIES + Qt::DBus + Qt::Widgets +) diff --git a/examples/embedded/CMakeLists.txt b/examples/embedded/CMakeLists.txt new file mode 100644 index 0000000000..bd7720809a --- /dev/null +++ b/examples/embedded/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from embedded.pro. + +add_subdirectory(styleexample) +add_subdirectory(raycasting) +add_subdirectory(flickable) +add_subdirectory(digiflip) +add_subdirectory(lightmaps) +add_subdirectory(flightinfo) diff --git a/examples/embedded/digiflip/CMakeLists.txt b/examples/embedded/digiflip/CMakeLists.txt new file mode 100644 index 0000000000..3786ed38a4 --- /dev/null +++ b/examples/embedded/digiflip/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from digiflip.pro. + +##################################################################### +## digiflip Binary: +##################################################################### + +add_qt_executable(digiflip + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/digiflip" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/digiflip" + SOURCES + digiflip.cpp + LIBRARIES + Qt::Widgets +) diff --git a/examples/embedded/flickable/CMakeLists.txt b/examples/embedded/flickable/CMakeLists.txt new file mode 100644 index 0000000000..20f8eca9f5 --- /dev/null +++ b/examples/embedded/flickable/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from flickable.pro. + +##################################################################### +## flickable Binary: +##################################################################### + +add_qt_executable(flickable + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flickable" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flickable" + SOURCES + flickable.cpp flickable.h + main.cpp + LIBRARIES + Qt::Widgets +) diff --git a/examples/embedded/flightinfo/CMakeLists.txt b/examples/embedded/flightinfo/CMakeLists.txt new file mode 100644 index 0000000000..b7d8441b96 --- /dev/null +++ b/examples/embedded/flightinfo/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from flightinfo.pro. + +##################################################################### +## flightinfo Binary: +##################################################################### + +add_qt_executable(flightinfo + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flightinfo" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/flightinfo" + SOURCES + flightinfo.cpp + form.ui + LIBRARIES + Qt::Network + Qt::Widgets +) + +# Resources: +add_qt_resource(flightinfo "flightinfo" PREFIX "/" FILES + aircraft.png) + + +#### Keys ignored in scope 1:.:flightinfo.pro:: +# TEMPLATE = "app" diff --git a/examples/embedded/lightmaps/CMakeLists.txt b/examples/embedded/lightmaps/CMakeLists.txt new file mode 100644 index 0000000000..4779d07adc --- /dev/null +++ b/examples/embedded/lightmaps/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from lightmaps.pro. + +##################################################################### +## lightmaps Binary: +##################################################################### + +add_qt_executable(lightmaps + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/lightmaps" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/lightmaps" + SOURCES + lightmaps.cpp lightmaps.h + main.cpp + mapzoom.cpp mapzoom.h + slippymap.cpp slippymap.h + LIBRARIES + Qt::Network + Qt::Widgets +) + +#### Keys ignored in scope 1:.:lightmaps.pro:: +# TEMPLATE = "app" diff --git a/examples/embedded/raycasting/CMakeLists.txt b/examples/embedded/raycasting/CMakeLists.txt new file mode 100644 index 0000000000..3757bb756a --- /dev/null +++ b/examples/embedded/raycasting/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from raycasting.pro. + +##################################################################### +## raycasting Binary: +##################################################################### + +add_qt_executable(raycasting + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/raycasting" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/raycasting" + SOURCES + raycasting.cpp + LIBRARIES + Qt::Widgets +) + +# Resources: +add_qt_resource(raycasting "raycasting" PREFIX "/" FILES + textures.png) + + +#### Keys ignored in scope 1:.:raycasting.pro:: +# TEMPLATE = "app" diff --git a/examples/embedded/styleexample/CMakeLists.txt b/examples/embedded/styleexample/CMakeLists.txt new file mode 100644 index 0000000000..9c82adc99d --- /dev/null +++ b/examples/embedded/styleexample/CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from styleexample.pro. + +##################################################################### +## styleexample Binary: +##################################################################### + +add_qt_executable(styleexample + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/styleexample" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/embedded/styleexample" + SOURCES + main.cpp + stylewidget.cpp stylewidget.h stylewidget.ui + LIBRARIES + Qt::Widgets +) + +# Resources: +add_qt_resource(styleexample "styleexample" PREFIX "/" FILES + files/add.png + files/application.qss + files/blue.qss + files/khaki.qss + files/nature_1.jpg + files/nostyle.qss + files/remove.png + files/transparent.qss) + diff --git a/examples/gui/CMakeLists.txt b/examples/gui/CMakeLists.txt index ac96b7351c..7ae4c6bc6a 100644 --- a/examples/gui/CMakeLists.txt +++ b/examples/gui/CMakeLists.txt @@ -1 +1,8 @@ +# Generated from gui.pro. + +add_subdirectory(analogclock) add_subdirectory(rasterwindow) + +if(TARGET Qt::Gui AND QT_FEATURE_opengl) + add_subdirectory(openglwindow) +endif() diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt new file mode 100644 index 0000000000..99a879c57a --- /dev/null +++ b/examples/gui/analogclock/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from analogclock.pro. + +##################################################################### +## analogclock Binary: +##################################################################### + +add_qt_executable(analogclock + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock" + SOURCES + ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h + main.cpp + INCLUDE_DIRECTORIES + ../rasterwindow + LIBRARIES # special case + Qt::Gui +) + +#### Keys ignored in scope 1:.:analogclock.pro:: +# CONFIG = "no_batch" diff --git a/examples/gui/openglwindow/CMakeLists.txt b/examples/gui/openglwindow/CMakeLists.txt new file mode 100644 index 0000000000..a59ba14346 --- /dev/null +++ b/examples/gui/openglwindow/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from openglwindow.pro. + +##################################################################### +## openglwindow Binary: +##################################################################### + +add_qt_executable(openglwindow + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow" + SOURCES + main.cpp + openglwindow.cpp openglwindow.h + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + LIBRARIES # special case + Qt::Gui +) diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt index 667f91c268..61255f3038 100644 --- a/examples/gui/rasterwindow/CMakeLists.txt +++ b/examples/gui/rasterwindow/CMakeLists.txt @@ -1,6 +1,18 @@ +# Generated from rasterwindow.pro. + +##################################################################### +## rasterwindow Binary: +##################################################################### + add_qt_executable(rasterwindow - SOURCES - main.cpp - rasterwindow.cpp rasterwindow.h - LIBRARIES Qt::Core Qt::Test Qt::Gui + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow" + SOURCES + main.cpp + rasterwindow.cpp rasterwindow.h + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + LIBRARIES # special case + Qt::Gui ) diff --git a/examples/network/CMakeLists.txt b/examples/network/CMakeLists.txt new file mode 100644 index 0000000000..af1f923dc6 --- /dev/null +++ b/examples/network/CMakeLists.txt @@ -0,0 +1,45 @@ +# Generated from network.pro. + +add_subdirectory(download) +add_subdirectory(downloadmanager) + +if(NOT INTEGRITY) + add_subdirectory(dnslookup) +endif() + +if(TARGET Qt::Widgets) + add_subdirectory(blockingfortuneclient) + add_subdirectory(broadcastreceiver) + add_subdirectory(broadcastsender) + add_subdirectory(http) + add_subdirectory(loopback) + add_subdirectory(threadedfortuneserver) + add_subdirectory(googlesuggest) + # add_subdirectory(torrent) FIXME: This does not find its ui file:-/ + add_subdirectory(multicastreceiver) + add_subdirectory(multicastsender) + + if(QT_FEATURE_bearermanagement) + add_subdirectory(bearermonitor) + add_subdirectory(fortuneclient) + add_subdirectory(fortuneserver) + + if(QT_FEATURE_processenvironment) + add_subdirectory(network-chat) + endif() + endif() + + if(QT_FEATURE_openssl) + add_subdirectory(securesocketclient) + endif() + + if(QT_FEATURE_dtls) + add_subdirectory(secureudpserver) + add_subdirectory(secureudpclient) + endif() + + if(QT_FEATURE_sctp) + add_subdirectory(multistreamserver) + add_subdirectory(multistreamclient) + endif() +endif() diff --git a/examples/network/bearermonitor/CMakeLists.txt b/examples/network/bearermonitor/CMakeLists.txt new file mode 100644 index 0000000000..001e5c7e2e --- /dev/null +++ b/examples/network/bearermonitor/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from bearermonitor.pro. + +##################################################################### +## bearermonitor Binary: +##################################################################### + +add_qt_executable(bearermonitor + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/bearermonitor" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/bearermonitor" + SOURCES + bearermonitor.cpp bearermonitor.h + bearermonitor_240_320.ui + bearermonitor_640_480.ui + main.cpp + sessionwidget.cpp sessionwidget.h sessionwidget.ui + LIBRARIES + Qt::Gui + Qt::Network + Qt::Widgets +) + +#### Keys ignored in scope 1:.:bearermonitor.pro:: +# CONFIG = "console" + +## Scopes: +##################################################################### + +extend_target(bearermonitor CONDITION WIN32 + LIBRARIES + ws2_32 +) diff --git a/examples/network/blockingfortuneclient/CMakeLists.txt b/examples/network/blockingfortuneclient/CMakeLists.txt new file mode 100644 index 0000000000..bedbf2f607 --- /dev/null +++ b/examples/network/blockingfortuneclient/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from blockingfortuneclient.pro. + +##################################################################### +## blockingfortuneclient Binary: +##################################################################### + +add_qt_executable(blockingfortuneclient + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/blockingfortuneclient" + SOURCES + blockingclient.cpp blockingclient.h + fortunethread.cpp fortunethread.h + main.cpp + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/broadcastreceiver/CMakeLists.txt b/examples/network/broadcastreceiver/CMakeLists.txt new file mode 100644 index 0000000000..197e56cef0 --- /dev/null +++ b/examples/network/broadcastreceiver/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from broadcastreceiver.pro. + +##################################################################### +## broadcastreceiver Binary: +##################################################################### + +add_qt_executable(broadcastreceiver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastreceiver" + SOURCES + main.cpp + receiver.cpp receiver.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/broadcastsender/CMakeLists.txt b/examples/network/broadcastsender/CMakeLists.txt new file mode 100644 index 0000000000..8fd49d8578 --- /dev/null +++ b/examples/network/broadcastsender/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from broadcastsender.pro. + +##################################################################### +## broadcastsender Binary: +##################################################################### + +add_qt_executable(broadcastsender + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastsender" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/broadcastsender" + SOURCES + main.cpp + sender.cpp sender.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/dnslookup/CMakeLists.txt b/examples/network/dnslookup/CMakeLists.txt new file mode 100644 index 0000000000..6ffc633a96 --- /dev/null +++ b/examples/network/dnslookup/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from dnslookup.pro. + +##################################################################### +## dnslookup Binary: +##################################################################### + +add_qt_executable(dnslookup + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/dnslookup" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/dnslookup" + SOURCES + dnslookup.cpp dnslookup.h + LIBRARIES + Qt::Network +) + +#### Keys ignored in scope 1:.:dnslookup.pro:: +# TEMPLATE = "app" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:dnslookup.pro:APPLE_OSX: +# CONFIG = "-app_bundle" + +#### Keys ignored in scope 3:.:dnslookup.pro:WIN32: +# CONFIG = "console" diff --git a/examples/network/download/CMakeLists.txt b/examples/network/download/CMakeLists.txt new file mode 100644 index 0000000000..868685fd0a --- /dev/null +++ b/examples/network/download/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from download.pro. + +##################################################################### +## download Binary: +##################################################################### + +add_qt_executable(download + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/download" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/download" + SOURCES + main.cpp + LIBRARIES + Qt::Network +) + +#### Keys ignored in scope 1:.:download.pro:: +# CONFIG = "-app_bundle" diff --git a/examples/network/downloadmanager/CMakeLists.txt b/examples/network/downloadmanager/CMakeLists.txt new file mode 100644 index 0000000000..a5ccac9178 --- /dev/null +++ b/examples/network/downloadmanager/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from downloadmanager.pro. + +##################################################################### +## downloadmanager Binary: +##################################################################### + +add_qt_executable(downloadmanager + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/downloadmanager" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/downloadmanager" + SOURCES + downloadmanager.cpp downloadmanager.h + main.cpp + textprogressbar.cpp textprogressbar.h + LIBRARIES + Qt::Network +) + +#### Keys ignored in scope 1:.:downloadmanager.pro:: +# CONFIG = "-app_bundle" +# OTHER_FILES = "debian/changelog" "debian/compat" "debian/control" "debian/copyright" "debian/README" "debian/rules" diff --git a/examples/network/fortuneclient/CMakeLists.txt b/examples/network/fortuneclient/CMakeLists.txt new file mode 100644 index 0000000000..bbeecf9c64 --- /dev/null +++ b/examples/network/fortuneclient/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from fortuneclient.pro. + +##################################################################### +## fortuneclient Binary: +##################################################################### + +add_qt_executable(fortuneclient + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneclient" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneclient" + SOURCES + client.cpp client.h + main.cpp + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/fortuneserver/CMakeLists.txt b/examples/network/fortuneserver/CMakeLists.txt new file mode 100644 index 0000000000..299f43910f --- /dev/null +++ b/examples/network/fortuneserver/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from fortuneserver.pro. + +##################################################################### +## fortuneserver Binary: +##################################################################### + +add_qt_executable(fortuneserver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneserver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/fortuneserver" + SOURCES + main.cpp + server.cpp server.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/googlesuggest/CMakeLists.txt b/examples/network/googlesuggest/CMakeLists.txt new file mode 100644 index 0000000000..ef5deedb80 --- /dev/null +++ b/examples/network/googlesuggest/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from googlesuggest.pro. + +##################################################################### +## googlesuggest Binary: +##################################################################### + +add_qt_executable(googlesuggest + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/googlesuggest" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/googlesuggest" + SOURCES + googlesuggest.cpp googlesuggest.h + main.cpp + searchbox.cpp searchbox.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt new file mode 100644 index 0000000000..d1c61f1c98 --- /dev/null +++ b/examples/network/http/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from http.pro. + +##################################################################### +## http Binary: +##################################################################### + +add_qt_executable(http + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/http" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/http" + SOURCES + authenticationdialog.ui + httpwindow.cpp httpwindow.h + main.cpp + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/loopback/CMakeLists.txt b/examples/network/loopback/CMakeLists.txt new file mode 100644 index 0000000000..566b48a76e --- /dev/null +++ b/examples/network/loopback/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from loopback.pro. + +##################################################################### +## loopback Binary: +##################################################################### + +add_qt_executable(loopback + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/loopback" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/loopback" + SOURCES + dialog.cpp dialog.h + main.cpp + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/multicastreceiver/CMakeLists.txt b/examples/network/multicastreceiver/CMakeLists.txt new file mode 100644 index 0000000000..11204015f2 --- /dev/null +++ b/examples/network/multicastreceiver/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from multicastreceiver.pro. + +##################################################################### +## multicastreceiver Binary: +##################################################################### + +add_qt_executable(multicastreceiver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastreceiver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastreceiver" + SOURCES + main.cpp + receiver.cpp receiver.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/multicastsender/CMakeLists.txt b/examples/network/multicastsender/CMakeLists.txt new file mode 100644 index 0000000000..e02a6b7145 --- /dev/null +++ b/examples/network/multicastsender/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from multicastsender.pro. + +##################################################################### +## multicastsender Binary: +##################################################################### + +add_qt_executable(multicastsender + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastsender" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multicastsender" + SOURCES + main.cpp + sender.cpp sender.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/multistreamclient/CMakeLists.txt b/examples/network/multistreamclient/CMakeLists.txt new file mode 100644 index 0000000000..b9f10f3fd5 --- /dev/null +++ b/examples/network/multistreamclient/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from multistreamclient.pro. + +##################################################################### +## multistreamclient Binary: +##################################################################### + +add_qt_executable(multistreamclient + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamclient" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamclient" + SOURCES + chatconsumer.cpp chatconsumer.h + client.cpp client.h + consumer.h + main.cpp + movieconsumer.cpp movieconsumer.h + timeconsumer.cpp timeconsumer.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/multistreamserver/CMakeLists.txt b/examples/network/multistreamserver/CMakeLists.txt new file mode 100644 index 0000000000..3475995178 --- /dev/null +++ b/examples/network/multistreamserver/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from multistreamserver.pro. + +##################################################################### +## multistreamserver Binary: +##################################################################### + +add_qt_executable(multistreamserver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamserver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/multistreamserver" + SOURCES + chatprovider.cpp chatprovider.h + main.cpp + movieprovider.cpp movieprovider.h + provider.h + server.cpp server.h + timeprovider.cpp timeprovider.h + LIBRARIES + Qt::Network + Qt::Widgets +) + +#### Keys ignored in scope 1:.:multistreamserver.pro:: +# EXAMPLE_FILES = "animation.gif" diff --git a/examples/network/network-chat/CMakeLists.txt b/examples/network/network-chat/CMakeLists.txt new file mode 100644 index 0000000000..56cd632529 --- /dev/null +++ b/examples/network/network-chat/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from network-chat.pro. + +##################################################################### +## network-chat Binary: +##################################################################### + +add_qt_executable(network-chat + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/network-chat" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/network-chat" + SOURCES + chatdialog.cpp chatdialog.h chatdialog.ui + client.cpp client.h + connection.cpp connection.h + main.cpp + peermanager.cpp peermanager.h + server.cpp server.h + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/securesocketclient/CMakeLists.txt b/examples/network/securesocketclient/CMakeLists.txt new file mode 100644 index 0000000000..e6fdd6b2ca --- /dev/null +++ b/examples/network/securesocketclient/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from securesocketclient.pro. + +##################################################################### +## securesocketclient Binary: +##################################################################### + +add_qt_executable(securesocketclient + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/securesocketclient" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/securesocketclient" + SOURCES + certificateinfo.cpp certificateinfo.h certificateinfo.ui + main.cpp + sslclient.cpp sslclient.h sslclient.ui + sslerrors.ui + LIBRARIES + Qt::Network + Qt::Widgets +) + +# Resources: +add_qt_resource(securesocketclient "securesocketclient" FILES + encrypted.png) + diff --git a/examples/network/secureudpclient/CMakeLists.txt b/examples/network/secureudpclient/CMakeLists.txt new file mode 100644 index 0000000000..02dfd77fe0 --- /dev/null +++ b/examples/network/secureudpclient/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from secureudpclient.pro. + +##################################################################### +## secureudpclient Binary: +##################################################################### + +add_qt_executable(secureudpclient + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpclient" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpclient" + SOURCES + addressdialog.cpp addressdialog.h addressdialog.ui + association.cpp association.h + main.cpp + mainwindow.cpp mainwindow.h mainwindow.ui + LIBRARIES + Qt::Widgets + Qt::Network +) + +#### Keys ignored in scope 1:.:secureudpclient.pro:: +# TEMPLATE = "app" diff --git a/examples/network/secureudpserver/CMakeLists.txt b/examples/network/secureudpserver/CMakeLists.txt new file mode 100644 index 0000000000..c7d97420ae --- /dev/null +++ b/examples/network/secureudpserver/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from secureudpserver.pro. + +##################################################################### +## secureudpserver Binary: +##################################################################### + +add_qt_executable(secureudpserver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpserver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/secureudpserver" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h mainwindow.ui + nicselector.cpp nicselector.h nicselector.ui + server.cpp server.h + LIBRARIES + Qt::Widgets + Qt::Network +) + +#### Keys ignored in scope 1:.:secureudpserver.pro:: +# TEMPLATE = "app" diff --git a/examples/network/threadedfortuneserver/CMakeLists.txt b/examples/network/threadedfortuneserver/CMakeLists.txt new file mode 100644 index 0000000000..124ac1d1cc --- /dev/null +++ b/examples/network/threadedfortuneserver/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from threadedfortuneserver.pro. + +##################################################################### +## threadedfortuneserver Binary: +##################################################################### + +add_qt_executable(threadedfortuneserver + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/threadedfortuneserver" + SOURCES + dialog.cpp dialog.h + fortuneserver.cpp fortuneserver.h + fortunethread.cpp fortunethread.h + main.cpp + LIBRARIES + Qt::Network + Qt::Widgets +) diff --git a/examples/network/torrent/CMakeLists.txt b/examples/network/torrent/CMakeLists.txt new file mode 100644 index 0000000000..f8cbc071ff --- /dev/null +++ b/examples/network/torrent/CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from torrent.pro. + +##################################################################### +## torrent Binary: +##################################################################### + +add_qt_executable(torrent + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/network/torrent" + SOURCES + addtorrentdialog.cpp addtorrentdialog.h + bencodeparser.cpp bencodeparser.h + connectionmanager.cpp connectionmanager.h + filemanager.cpp filemanager.h + forms/addtorrentform.ui + main.cpp + mainwindow.cpp mainwindow.h + metainfo.cpp metainfo.h + peerwireclient.cpp peerwireclient.h + ratecontroller.cpp ratecontroller.h + torrentclient.cpp torrentclient.h + torrentserver.cpp torrentserver.h + trackerclient.cpp trackerclient.h + INCLUDE_DIRECTORIES + forms # special case + LIBRARIES + Qt::Network + Qt::Widgets +) + +# Resources: +add_qt_resource(torrent "icons" PREFIX "/" FILES + icons/1downarrow.png + icons/1uparrow.png + icons/bottom.png + icons/exit.png + icons/peertopeer.png + icons/player_pause.png + icons/player_play.png + icons/player_stop.png) + diff --git a/examples/qpa/CMakeLists.txt b/examples/qpa/CMakeLists.txt new file mode 100644 index 0000000000..0ae7f61e57 --- /dev/null +++ b/examples/qpa/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from qpa.pro. + +add_subdirectory(windows) +add_subdirectory(qrasterwindow) diff --git a/examples/qpa/qrasterwindow/CMakeLists.txt b/examples/qpa/qrasterwindow/CMakeLists.txt new file mode 100644 index 0000000000..0eae5b28af --- /dev/null +++ b/examples/qpa/qrasterwindow/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qrasterwindow.pro. + +##################################################################### +## qrasterwindow Binary: +##################################################################### + +add_qt_executable(qrasterwindow + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/qrasterwindow" + SOURCES + main.cpp + LIBRARIES + Qt::Gui # special case +) diff --git a/examples/qpa/windows/CMakeLists.txt b/examples/qpa/windows/CMakeLists.txt new file mode 100644 index 0000000000..55135e02ff --- /dev/null +++ b/examples/qpa/windows/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from windows.pro. + +##################################################################### +## windows Binary: +##################################################################### + +add_qt_executable(windows + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/windows" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qpa/windows" + SOURCES + main.cpp + window.cpp window.h + LIBRARIES + Qt::GuiPrivate + Qt::CorePrivate +) + +#### Keys ignored in scope 1:.:windows.pro:: +# CONFIG = "console" diff --git a/examples/qtconcurrent/CMakeLists.txt b/examples/qtconcurrent/CMakeLists.txt new file mode 100644 index 0000000000..13cfed8773 --- /dev/null +++ b/examples/qtconcurrent/CMakeLists.txt @@ -0,0 +1,9 @@ +if(TARGET Qt::Gui) + add_subdirectory(map) +endif() +if(TARGET Qt::Widgets) + add_subdirectory(imagescaling) + add_subdirectory(progressdialog) + add_subdirectory(runfunction) + add_subdirectory(wordcount) +endif() diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt new file mode 100644 index 0000000000..0de3f26c5e --- /dev/null +++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from imagescaling.pro. + +##################################################################### +## imagescaling Binary: +##################################################################### + +add_qt_executable(imagescaling + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/imagescaling" + SOURCES + imagescaling.cpp imagescaling.h + main.cpp + LIBRARIES + Qt::Concurrent + Qt::Widgets +) diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt new file mode 100644 index 0000000000..147b91236b --- /dev/null +++ b/examples/qtconcurrent/map/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from map.pro. + +##################################################################### +## mapdemo Binary: +##################################################################### + +add_qt_executable(mapdemo + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/map" + SOURCES + main.cpp + LIBRARIES + Qt::Concurrent + Qt::Gui # special case +) + +#### Keys ignored in scope 1:.:map.pro:: +# CONFIG = "-app_bundle" +# TEMPLATE = "app" diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt new file mode 100644 index 0000000000..3aae4af084 --- /dev/null +++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from progressdialog.pro. + +##################################################################### +## progressdialog Binary: +##################################################################### + +add_qt_executable(progressdialog + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/progressdialog" + SOURCES + main.cpp + LIBRARIES + Qt::Concurrent + Qt::Widgets +) + +#### Keys ignored in scope 1:.:progressdialog.pro:: +# CONFIG = "console" diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt new file mode 100644 index 0000000000..c400b44cf6 --- /dev/null +++ b/examples/qtconcurrent/runfunction/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from runfunction.pro. + +##################################################################### +## runfunction Binary: +##################################################################### + +add_qt_executable(runfunction + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/runfunction" + SOURCES + main.cpp + LIBRARIES + Qt::Concurrent + Qt::Widgets +) + +#### Keys ignored in scope 1:.:runfunction.pro:: +# CONFIG = "-app_bundle" diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt new file mode 100644 index 0000000000..9bb2ac58d7 --- /dev/null +++ b/examples/qtconcurrent/wordcount/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from wordcount.pro. + +##################################################################### +## wordcount Binary: +##################################################################### + +add_qt_executable(wordcount + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtconcurrent/wordcount" + SOURCES + main.cpp + LIBRARIES + Qt::Concurrent + Qt::Widgets +) + +#### Keys ignored in scope 1:.:wordcount.pro:: +# CONFIG = "-app_bundle" diff --git a/examples/qtestlib/CMakeLists.txt b/examples/qtestlib/CMakeLists.txt new file mode 100644 index 0000000000..83e7df5768 --- /dev/null +++ b/examples/qtestlib/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from qtestlib.pro. + +add_subdirectory(tutorial1) +add_subdirectory(tutorial2) +add_subdirectory(tutorial3) +add_subdirectory(tutorial4) +add_subdirectory(tutorial5) diff --git a/examples/qtestlib/tutorial1/CMakeLists.txt b/examples/qtestlib/tutorial1/CMakeLists.txt new file mode 100644 index 0000000000..6e489e329f --- /dev/null +++ b/examples/qtestlib/tutorial1/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from tutorial1.pro. + +##################################################################### +## tutorial1 Binary: +##################################################################### + +add_qt_executable(tutorial1 + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial1" + SOURCES + testqstring.cpp + LIBRARIES + Qt::Widgets + Qt::Test +) diff --git a/examples/qtestlib/tutorial2/CMakeLists.txt b/examples/qtestlib/tutorial2/CMakeLists.txt new file mode 100644 index 0000000000..06288ce50b --- /dev/null +++ b/examples/qtestlib/tutorial2/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from tutorial2.pro. + +##################################################################### +## tutorial2 Binary: +##################################################################### + +add_qt_executable(tutorial2 + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial2" + SOURCES + testqstring.cpp + LIBRARIES + Qt::Widgets + Qt::Test +) diff --git a/examples/qtestlib/tutorial3/CMakeLists.txt b/examples/qtestlib/tutorial3/CMakeLists.txt new file mode 100644 index 0000000000..79683e0cfc --- /dev/null +++ b/examples/qtestlib/tutorial3/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from tutorial3.pro. + +##################################################################### +## tutorial3 Binary: +##################################################################### + +add_qt_executable(tutorial3 + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial3" + SOURCES + testgui.cpp + LIBRARIES + Qt::Widgets + Qt::Test +) diff --git a/examples/qtestlib/tutorial4/CMakeLists.txt b/examples/qtestlib/tutorial4/CMakeLists.txt new file mode 100644 index 0000000000..2f3d2bb88a --- /dev/null +++ b/examples/qtestlib/tutorial4/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from tutorial4.pro. + +##################################################################### +## tutorial4 Binary: +##################################################################### + +add_qt_executable(tutorial4 + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial4" + SOURCES + testgui.cpp + LIBRARIES + Qt::Widgets + Qt::Test +) diff --git a/examples/qtestlib/tutorial5/CMakeLists.txt b/examples/qtestlib/tutorial5/CMakeLists.txt new file mode 100644 index 0000000000..e4af9b354c --- /dev/null +++ b/examples/qtestlib/tutorial5/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from tutorial5.pro. + +##################################################################### +## tutorial5 Binary: +##################################################################### + +add_qt_executable(tutorial5 + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/qtestlib/tutorial5" + SOURCES + benchmarking.cpp + LIBRARIES + Qt::Widgets + Qt::Test +) diff --git a/examples/sql/CMakeLists.txt b/examples/sql/CMakeLists.txt new file mode 100644 index 0000000000..ca15f22baf --- /dev/null +++ b/examples/sql/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from sql.pro. + +add_subdirectory(books) +add_subdirectory(drilldown) +add_subdirectory(cachedtable) +add_subdirectory(querymodel) +add_subdirectory(relationaltablemodel) +add_subdirectory(sqlwidgetmapper) +add_subdirectory(tablemodel) + +if(TARGET Qt::Xml) + add_subdirectory(masterdetail) +endif() + +if(NOT CMAKE_CROSSCOMPILING) # special case + add_subdirectory(sqlbrowser) +endif() diff --git a/examples/sql/books/CMakeLists.txt b/examples/sql/books/CMakeLists.txt new file mode 100644 index 0000000000..e01adc1402 --- /dev/null +++ b/examples/sql/books/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from books.pro. + +##################################################################### +## books Binary: +##################################################################### + +add_qt_executable(books + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/books" + SOURCES + bookdelegate.cpp bookdelegate.h + bookwindow.cpp bookwindow.h bookwindow.ui + initdb.h + main.cpp + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + LIBRARIES + Qt::Sql + Qt::Widgets + Qt::Widgets +) + +# Resources: +add_qt_resource(books "books" PREFIX "/" FILES + images/star.png) + + +#### Keys ignored in scope 1:.:books.pro:: +# TEMPLATE = "app" diff --git a/examples/sql/cachedtable/CMakeLists.txt b/examples/sql/cachedtable/CMakeLists.txt new file mode 100644 index 0000000000..8e87a32211 --- /dev/null +++ b/examples/sql/cachedtable/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from cachedtable.pro. + +##################################################################### +## cachedtable Binary: +##################################################################### + +add_qt_executable(cachedtable + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/cachedtable" + SOURCES + ../connection.h + main.cpp + tableeditor.cpp tableeditor.h + LIBRARIES + Qt::Sql + Qt::Widgets +) diff --git a/examples/sql/drilldown/CMakeLists.txt b/examples/sql/drilldown/CMakeLists.txt new file mode 100644 index 0000000000..a4301d3474 --- /dev/null +++ b/examples/sql/drilldown/CMakeLists.txt @@ -0,0 +1,28 @@ +# Generated from drilldown.pro. + +##################################################################### +## drilldown Binary: +##################################################################### + +add_qt_executable(drilldown + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/drilldown" + SOURCES + ../connection.h + imageitem.cpp imageitem.h + informationwindow.cpp informationwindow.h + main.cpp + view.cpp view.h + LIBRARIES + Qt::Sql + Qt::Widgets +) + +# Resources: +add_qt_resource(drilldown "drilldown" PREFIX "/" FILES + images/qt-creator.png + images/qt-logo.png + images/qt-project.png + images/qt-quick.png) + diff --git a/examples/sql/masterdetail/CMakeLists.txt b/examples/sql/masterdetail/CMakeLists.txt new file mode 100644 index 0000000000..8c73675e55 --- /dev/null +++ b/examples/sql/masterdetail/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from masterdetail.pro. + +##################################################################### +## masterdetail Binary: +##################################################################### + +add_qt_executable(masterdetail + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/masterdetail" + SOURCES + database.h + dialog.cpp dialog.h + main.cpp + mainwindow.cpp mainwindow.h + LIBRARIES + Qt::Sql + Qt::Widgets + Qt::Xml + Qt::Widgets +) + +# Resources: +add_qt_resource(masterdetail "masterdetail" FILES + images/icon.png + images/image.png) + + +#### Keys ignored in scope 1:.:masterdetail.pro:: +# EXAMPLE_FILES = "albumdetails.xml" diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt new file mode 100644 index 0000000000..5c9d48c7f1 --- /dev/null +++ b/examples/sql/querymodel/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from querymodel.pro. + +##################################################################### +## querymodel Binary: +##################################################################### + +add_qt_executable(querymodel + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/querymodel" + SOURCES + ../connection.h + customsqlmodel.cpp customsqlmodel.h + editablesqlmodel.cpp editablesqlmodel.h + main.cpp + LIBRARIES + Qt::Sql + Qt::Widgets +) diff --git a/examples/sql/relationaltablemodel/CMakeLists.txt b/examples/sql/relationaltablemodel/CMakeLists.txt new file mode 100644 index 0000000000..d31042cc73 --- /dev/null +++ b/examples/sql/relationaltablemodel/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from relationaltablemodel.pro. + +##################################################################### +## relationaltablemodel Binary: +##################################################################### + +add_qt_executable(relationaltablemodel + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/relationaltablemodel" + SOURCES + ../connection.h + relationaltablemodel.cpp + LIBRARIES + Qt::Sql + Qt::Widgets +) diff --git a/examples/sql/sqlbrowser/CMakeLists.txt b/examples/sql/sqlbrowser/CMakeLists.txt new file mode 100644 index 0000000000..03111e9049 --- /dev/null +++ b/examples/sql/sqlbrowser/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from sqlbrowser.pro. + +##################################################################### +## sqlbrowser Binary: +##################################################################### + +add_qt_executable(sqlbrowser + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlbrowser" + SOURCES + browser.cpp browser.h + browserwidget.ui + connectionwidget.cpp connectionwidget.h + main.cpp + qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui + LIBRARIES + Qt::Sql + Qt::Widgets +) + +#### Keys ignored in scope 1:.:sqlbrowser.pro:: +# TEMPLATE = "app" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:sqlbrowser.pro:build_all AND NOT build_pass: +# CONFIG = "-build_all" "release" diff --git a/examples/sql/sqlwidgetmapper/CMakeLists.txt b/examples/sql/sqlwidgetmapper/CMakeLists.txt new file mode 100644 index 0000000000..41d95da21e --- /dev/null +++ b/examples/sql/sqlwidgetmapper/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from sqlwidgetmapper.pro. + +##################################################################### +## sqlwidgetmapper Binary: +##################################################################### + +add_qt_executable(sqlwidgetmapper + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/sqlwidgetmapper" + SOURCES + main.cpp + window.cpp window.h + LIBRARIES + Qt::Sql + Qt::Widgets +) diff --git a/examples/sql/tablemodel/CMakeLists.txt b/examples/sql/tablemodel/CMakeLists.txt new file mode 100644 index 0000000000..68644a4b3d --- /dev/null +++ b/examples/sql/tablemodel/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from tablemodel.pro. + +##################################################################### +## tablemodel Binary: +##################################################################### + +add_qt_executable(tablemodel + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/sql/tablemodel" + SOURCES + ../connection.h + tablemodel.cpp + LIBRARIES + Qt::Sql + Qt::Widgets +) -- cgit v1.2.3