diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-26 16:22:32 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-27 12:49:39 +0100 |
commit | 397b3725176780d8888f8499cac0127dbb7df2c7 (patch) | |
tree | b7c38898d1a7d2a2278b010b034b9c605c785c50 /examples/corelib | |
parent | 65fe5b2ce22797389aa074ef2c30e873a3c38d48 (diff) | |
download | qtbase-397b3725176780d8888f8499cac0127dbb7df2c7.tar.gz |
CMake: Regenerate examples to set the WIN32_EXECUTABLE property
As well as the MACOSX_BUNDLE properties as necessary.
Task-number: QTBUG-87664
Task-number: QTBUG-86827
Change-Id: I7677449a26d51fa853bd67bab6b3b61afbd2b12f
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/corelib')
14 files changed, 56 insertions, 0 deletions
diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt index 837e686465..b01023b009 100644 --- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(localfortuneclient client.cpp client.h main.cpp ) +set_target_properties(localfortuneclient PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(localfortuneclient PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt index e459913c6f..86cd90a3cf 100644 --- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(localfortuneserver main.cpp server.cpp server.h ) +set_target_properties(localfortuneserver PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(localfortuneserver PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt index 5205cc654b..74580e9472 100644 --- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt +++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(sharedmemory dialog.cpp dialog.h dialog.ui main.cpp ) +set_target_properties(sharedmemory PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(sharedmemory PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt index d22ad9d812..977c072e00 100644 --- a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt +++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(mimetypebrowser mainwindow.cpp mainwindow.h mimetypemodel.cpp mimetypemodel.h ) +set_target_properties(mimetypebrowser PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE FALSE +) target_link_libraries(mimetypebrowser PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt index 7397d8c1b3..542c6f5ad0 100644 --- a/examples/corelib/serialization/cbordump/CMakeLists.txt +++ b/examples/corelib/serialization/cbordump/CMakeLists.txt @@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core) qt_add_executable(cbordump main.cpp ) +set_target_properties(cbordump PROPERTIES + WIN32_EXECUTABLE FALSE + MACOSX_BUNDLE FALSE +) target_link_libraries(cbordump PUBLIC Qt::Core ) diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt index 8c2d4c0132..0f2897441a 100644 --- a/examples/corelib/serialization/convert/CMakeLists.txt +++ b/examples/corelib/serialization/convert/CMakeLists.txt @@ -27,6 +27,10 @@ qt_add_executable(convert textconverter.cpp textconverter.h xmlconverter.cpp xmlconverter.h ) +set_target_properties(convert PROPERTIES + WIN32_EXECUTABLE FALSE + MACOSX_BUNDLE FALSE +) target_link_libraries(convert PUBLIC Qt::Core ) diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt index 68adf45209..b0b410bbc5 100644 --- a/examples/corelib/serialization/savegame/CMakeLists.txt +++ b/examples/corelib/serialization/savegame/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(savegame level.cpp level.h main.cpp ) +set_target_properties(savegame PROPERTIES + WIN32_EXECUTABLE FALSE + MACOSX_BUNDLE FALSE +) target_link_libraries(savegame PUBLIC Qt::Core ) diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt index 4147900226..96136522f7 100644 --- a/examples/corelib/threads/mandelbrot/CMakeLists.txt +++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(mandelbrot mandelbrotwidget.cpp mandelbrotwidget.h renderthread.cpp renderthread.h ) +set_target_properties(mandelbrot PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mandelbrot PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt index 62b1cd5e9a..93c26318f6 100644 --- a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt +++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt @@ -25,6 +25,10 @@ qt_add_executable(queuedcustomtype renderthread.cpp renderthread.h window.cpp window.h ) +set_target_properties(queuedcustomtype PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(queuedcustomtype PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt index 117f761fd5..f79e241fcc 100644 --- a/examples/corelib/threads/semaphores/CMakeLists.txt +++ b/examples/corelib/threads/semaphores/CMakeLists.txt @@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core) qt_add_executable(semaphores semaphores.cpp ) +set_target_properties(semaphores PROPERTIES + WIN32_EXECUTABLE FALSE + MACOSX_BUNDLE FALSE +) target_link_libraries(semaphores PUBLIC Qt::Core ) diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt index 0449e537c5..9581dd58e9 100644 --- a/examples/corelib/threads/waitconditions/CMakeLists.txt +++ b/examples/corelib/threads/waitconditions/CMakeLists.txt @@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core) qt_add_executable(waitconditions waitconditions.cpp ) +set_target_properties(waitconditions PROPERTIES + WIN32_EXECUTABLE FALSE + MACOSX_BUNDLE FALSE +) target_link_libraries(waitconditions PUBLIC Qt::Core ) diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt index a8aef5f94b..7650bdd4ac 100644 --- a/examples/corelib/tools/contiguouscache/CMakeLists.txt +++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(contiguouscache main.cpp randomlistmodel.cpp randomlistmodel.h ) +set_target_properties(contiguouscache PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(contiguouscache PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt index e36157e9f6..68c1784bde 100644 --- a/examples/corelib/tools/customtype/CMakeLists.txt +++ b/examples/corelib/tools/customtype/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(customtype main.cpp message.cpp message.h ) +set_target_properties(customtype PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(customtype PUBLIC Qt::Core Qt::Gui diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt index 0b1af630ae..1b67e23220 100644 --- a/examples/corelib/tools/customtypesending/CMakeLists.txt +++ b/examples/corelib/tools/customtypesending/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(customtypesending message.cpp message.h window.cpp window.h ) +set_target_properties(customtypesending PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(customtypesending PUBLIC Qt::Core Qt::Gui |