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/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 ++++++++++++++ 20 files changed, 309 insertions(+) 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 (limited to 'examples/corelib') 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 +) -- cgit v1.2.3