summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/corelib/ipc/localfortuneclient/CMakeLists.txt3
-rw-r--r--examples/corelib/ipc/localfortuneserver/CMakeLists.txt3
-rw-r--r--examples/corelib/ipc/sharedmemory/CMakeLists.txt3
-rw-r--r--examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt3
-rw-r--r--examples/corelib/serialization/cbordump/CMakeLists.txt1
-rw-r--r--examples/corelib/serialization/convert/CMakeLists.txt1
-rw-r--r--examples/corelib/serialization/savegame/CMakeLists.txt1
-rw-r--r--examples/corelib/threads/mandelbrot/CMakeLists.txt3
-rw-r--r--examples/corelib/threads/queuedcustomtype/CMakeLists.txt3
-rw-r--r--examples/corelib/threads/semaphores/CMakeLists.txt1
-rw-r--r--examples/corelib/threads/waitconditions/CMakeLists.txt1
-rw-r--r--examples/corelib/tools/contiguouscache/CMakeLists.txt3
-rw-r--r--examples/corelib/tools/customtype/CMakeLists.txt3
-rw-r--r--examples/corelib/tools/customtypesending/CMakeLists.txt3
-rw-r--r--examples/dbus/chat/CMakeLists.txt3
-rw-r--r--examples/dbus/complexpingpong/CMakeLists.txt3
-rw-r--r--examples/dbus/listnames/CMakeLists.txt3
-rw-r--r--examples/dbus/pingpong/CMakeLists.txt3
-rw-r--r--examples/dbus/remotecontrolledcar/car/CMakeLists.txt3
-rw-r--r--examples/dbus/remotecontrolledcar/controller/CMakeLists.txt3
-rw-r--r--examples/embedded/digiflip/CMakeLists.txt3
-rw-r--r--examples/embedded/flickable/CMakeLists.txt3
-rw-r--r--examples/embedded/flightinfo/CMakeLists.txt3
-rw-r--r--examples/embedded/lightmaps/CMakeLists.txt3
-rw-r--r--examples/embedded/raycasting/CMakeLists.txt3
-rw-r--r--examples/embedded/styleexample/CMakeLists.txt3
-rw-r--r--examples/gui/analogclock/CMakeLists.txt3
-rw-r--r--examples/gui/openglwindow/CMakeLists.txt3
-rw-r--r--examples/gui/rasterwindow/CMakeLists.txt3
-rw-r--r--examples/network/bearermonitor/CMakeLists.txt1
-rw-r--r--examples/network/blockingfortuneclient/CMakeLists.txt3
-rw-r--r--examples/network/broadcastreceiver/CMakeLists.txt3
-rw-r--r--examples/network/broadcastsender/CMakeLists.txt3
-rw-r--r--examples/network/dnslookup/CMakeLists.txt1
-rw-r--r--examples/network/download/CMakeLists.txt1
-rw-r--r--examples/network/downloadmanager/CMakeLists.txt1
-rw-r--r--examples/network/fortuneclient/CMakeLists.txt3
-rw-r--r--examples/network/fortuneserver/CMakeLists.txt3
-rw-r--r--examples/network/googlesuggest/CMakeLists.txt3
-rw-r--r--examples/network/http/CMakeLists.txt3
-rw-r--r--examples/network/loopback/CMakeLists.txt3
-rw-r--r--examples/network/multicastreceiver/CMakeLists.txt3
-rw-r--r--examples/network/multicastsender/CMakeLists.txt3
-rw-r--r--examples/network/multistreamclient/CMakeLists.txt3
-rw-r--r--examples/network/multistreamserver/CMakeLists.txt3
-rw-r--r--examples/network/network-chat/CMakeLists.txt3
-rw-r--r--examples/network/securesocketclient/CMakeLists.txt3
-rw-r--r--examples/network/secureudpclient/CMakeLists.txt3
-rw-r--r--examples/network/secureudpserver/CMakeLists.txt3
-rw-r--r--examples/network/threadedfortuneserver/CMakeLists.txt3
-rw-r--r--examples/network/torrent/.prev_CMakeLists.txt2
-rw-r--r--examples/network/torrent/CMakeLists.txt3
-rw-r--r--examples/qpa/qrasterwindow/CMakeLists.txt3
-rw-r--r--examples/qpa/windows/CMakeLists.txt1
-rw-r--r--examples/qtconcurrent/imagescaling/CMakeLists.txt3
-rw-r--r--examples/qtconcurrent/map/CMakeLists.txt1
-rw-r--r--examples/qtconcurrent/progressdialog/CMakeLists.txt1
-rw-r--r--examples/qtconcurrent/runfunction/CMakeLists.txt1
-rw-r--r--examples/qtconcurrent/wordcount/CMakeLists.txt1
-rw-r--r--examples/qtestlib/tutorial1/CMakeLists.txt3
-rw-r--r--examples/qtestlib/tutorial2/CMakeLists.txt3
-rw-r--r--examples/qtestlib/tutorial3/CMakeLists.txt3
-rw-r--r--examples/qtestlib/tutorial4/CMakeLists.txt3
-rw-r--r--examples/qtestlib/tutorial5/CMakeLists.txt3
-rw-r--r--examples/sql/books/CMakeLists.txt3
-rw-r--r--examples/sql/cachedtable/CMakeLists.txt3
-rw-r--r--examples/sql/drilldown/CMakeLists.txt3
-rw-r--r--examples/sql/masterdetail/CMakeLists.txt3
-rw-r--r--examples/sql/querymodel/CMakeLists.txt3
-rw-r--r--examples/sql/relationaltablemodel/CMakeLists.txt3
-rw-r--r--examples/sql/sqlbrowser/CMakeLists.txt3
-rw-r--r--examples/sql/sqlwidgetmapper/CMakeLists.txt3
-rw-r--r--examples/sql/tablemodel/CMakeLists.txt3
-rw-r--r--examples/widgets/animation/animatedtiles/CMakeLists.txt3
-rw-r--r--examples/widgets/animation/easing/CMakeLists.txt3
-rw-r--r--examples/widgets/animation/moveblocks/CMakeLists.txt3
-rw-r--r--examples/widgets/animation/states/CMakeLists.txt3
-rw-r--r--examples/widgets/animation/stickman/CMakeLists.txt3
-rw-r--r--examples/widgets/animation/sub-attaq/CMakeLists.txt3
-rw-r--r--examples/widgets/desktop/screenshot/CMakeLists.txt3
-rw-r--r--examples/widgets/desktop/systray/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/classwizard/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/extension/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/findfiles/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/licensewizard/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/standarddialogs/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/tabdialog/CMakeLists.txt3
-rw-r--r--examples/widgets/dialogs/trivialwizard/CMakeLists.txt3
-rw-r--r--examples/widgets/draganddrop/draggableicons/CMakeLists.txt3
-rw-r--r--examples/widgets/draganddrop/draggabletext/CMakeLists.txt3
-rw-r--r--examples/widgets/draganddrop/dropsite/CMakeLists.txt3
-rw-r--r--examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt3
-rw-r--r--examples/widgets/draganddrop/puzzle/CMakeLists.txt3
-rw-r--r--examples/widgets/effects/blurpicker/CMakeLists.txt3
-rw-r--r--examples/widgets/effects/fademessage/CMakeLists.txt3
-rw-r--r--examples/widgets/gestures/imagegestures/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/anchorlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/boxes/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/chip/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/collidingmice/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/diagramscene/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/elasticnodes/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/flowlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/padnavigator/CMakeLists.txt1
-rw-r--r--examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/addressbook/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/chart/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/dirview/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/editabletreemodel/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/fetchmore/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/flattreeview/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/frozencolumn/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/interview/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/pixelator/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/puzzle/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/simpledommodel/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/simpletreemodel/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/spreadsheet/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/stardelegate/CMakeLists.txt3
-rw-r--r--examples/widgets/itemviews/storageview/CMakeLists.txt3
-rw-r--r--examples/widgets/layouts/basiclayouts/CMakeLists.txt3
-rw-r--r--examples/widgets/layouts/borderlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/layouts/dynamiclayouts/CMakeLists.txt3
-rw-r--r--examples/widgets/layouts/flowlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt3
-rw-r--r--examples/widgets/mac/qmacnativewidget/CMakeLists.txt3
-rw-r--r--examples/widgets/mainwindows/application/CMakeLists.txt3
-rw-r--r--examples/widgets/mainwindows/dockwidgets/CMakeLists.txt3
-rw-r--r--examples/widgets/mainwindows/mainwindow/CMakeLists.txt3
-rw-r--r--examples/widgets/mainwindows/mdi/CMakeLists.txt3
-rw-r--r--examples/widgets/mainwindows/menus/CMakeLists.txt3
-rw-r--r--examples/widgets/mainwindows/sdi/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/affine/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/basicdrawing/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/composition/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/concentriccircles/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/deform/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/fontsampler/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/gradients/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/imagecomposition/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/painterpaths/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/pathstroke/CMakeLists.txt3
-rw-r--r--examples/widgets/painting/transformations/CMakeLists.txt3
-rw-r--r--examples/widgets/richtext/calendar/CMakeLists.txt3
-rw-r--r--examples/widgets/richtext/orderform/CMakeLists.txt3
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt3
-rw-r--r--examples/widgets/richtext/textedit/CMakeLists.txt3
-rw-r--r--examples/widgets/scroller/graphicsview/CMakeLists.txt3
-rw-r--r--examples/widgets/statemachine/eventtransitions/CMakeLists.txt3
-rw-r--r--examples/widgets/statemachine/factorial/CMakeLists.txt1
-rw-r--r--examples/widgets/statemachine/pingpong/CMakeLists.txt1
-rw-r--r--examples/widgets/statemachine/rogue/CMakeLists.txt3
-rw-r--r--examples/widgets/statemachine/trafficlight/CMakeLists.txt3
-rw-r--r--examples/widgets/statemachine/twowaybutton/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/codecs/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/completer/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/customcompleter/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/i18n/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/plugandpaint/app/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/regexp/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/regularexpression/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/settingseditor/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/treemodelcompleter/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/undo/CMakeLists.txt3
-rw-r--r--examples/widgets/tools/undoframework/CMakeLists.txt3
-rw-r--r--examples/widgets/touch/dials/CMakeLists.txt3
-rw-r--r--examples/widgets/touch/fingerpaint/CMakeLists.txt3
-rw-r--r--examples/widgets/touch/knobs/CMakeLists.txt3
-rw-r--r--examples/widgets/touch/pinchzoom/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part1/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part2/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part3/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part4/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part5/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part6/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/addressbook/part7/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/notepad/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt3
-rw-r--r--examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/analogclock/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/calculator/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/calendarwidget/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/charactermap/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/codeeditor/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/digitalclock/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/elidedlabel/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/groupbox/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/icons/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/imageviewer/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/lineedits/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/mousebuttons/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/movie/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/scribble/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/shapedclock/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/sliders/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/spinboxes/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/styles/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/stylesheet/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/tablet/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/tetrix/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/tooltips/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/validators/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/wiggly/CMakeLists.txt3
-rw-r--r--examples/widgets/widgets/windowflags/CMakeLists.txt3
-rw-r--r--examples/widgets/windowcontainer/CMakeLists.txt3
-rw-r--r--examples/xml/dombookmarks/CMakeLists.txt3
-rw-r--r--examples/xml/htmlinfo/CMakeLists.txt1
-rw-r--r--examples/xml/rsslisting/CMakeLists.txt3
-rw-r--r--examples/xml/saxbookmarks/CMakeLists.txt3
-rw-r--r--examples/xml/streambookmarks/CMakeLists.txt3
-rw-r--r--examples/xml/xmlstreamlint/CMakeLists.txt1
237 files changed, 454 insertions, 218 deletions
diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
index a171965bbba..a49a5451ddb 100644
--- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
+++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(localfortuneclient WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(localfortuneclient
client.cpp client.h
main.cpp
)
@@ -25,4 +25,5 @@ target_link_libraries(localfortuneclient PUBLIC
install(TARGETS localfortuneclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
index 5804aa69faf..48dec3318d2 100644
--- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
+++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(localfortuneserver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(localfortuneserver
main.cpp
server.cpp server.h
)
@@ -25,4 +25,5 @@ target_link_libraries(localfortuneserver PUBLIC
install(TARGETS localfortuneserver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
index 55f42ada888..c63cf569bd6 100644
--- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt
+++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(sharedmemory WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(sharedmemory
dialog.cpp dialog.h dialog.ui
main.cpp
)
@@ -23,4 +23,5 @@ target_link_libraries(sharedmemory PUBLIC
install(TARGETS sharedmemory
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
index 1493bdd31d3..78944e74155 100644
--- a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
+++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mimetypebrowser WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mimetypebrowser
main.cpp
mainwindow.cpp mainwindow.h
mimetypemodel.cpp mimetypemodel.h
@@ -24,4 +24,5 @@ target_link_libraries(mimetypebrowser PUBLIC
install(TARGETS mimetypebrowser
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt
index f9f6be09d9f..5b924878c4c 100644
--- a/examples/corelib/serialization/cbordump/CMakeLists.txt
+++ b/examples/corelib/serialization/cbordump/CMakeLists.txt
@@ -23,4 +23,5 @@ target_link_libraries(cbordump PUBLIC
install(TARGETS cbordump
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt
index f03d3aa9dc4..821a913df2f 100644
--- a/examples/corelib/serialization/convert/CMakeLists.txt
+++ b/examples/corelib/serialization/convert/CMakeLists.txt
@@ -30,4 +30,5 @@ target_link_libraries(convert PUBLIC
install(TARGETS convert
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt
index 637613fef88..ea4bf79ea36 100644
--- a/examples/corelib/serialization/savegame/CMakeLists.txt
+++ b/examples/corelib/serialization/savegame/CMakeLists.txt
@@ -26,4 +26,5 @@ target_link_libraries(savegame PUBLIC
install(TARGETS savegame
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt
index cc0385a9ce3..1d4e7eaf4d3 100644
--- a/examples/corelib/threads/mandelbrot/CMakeLists.txt
+++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mandelbrot WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mandelbrot
main.cpp
mandelbrotwidget.cpp mandelbrotwidget.h
renderthread.cpp renderthread.h
@@ -24,4 +24,5 @@ target_link_libraries(mandelbrot PUBLIC
install(TARGETS mandelbrot
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
index ef07b36301a..3351018d726 100644
--- a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
+++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(queuedcustomtype WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(queuedcustomtype
block.cpp block.h
main.cpp
renderthread.cpp renderthread.h
@@ -25,4 +25,5 @@ target_link_libraries(queuedcustomtype PUBLIC
install(TARGETS queuedcustomtype
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt
index 51638e0ff8c..45959f0c546 100644
--- a/examples/corelib/threads/semaphores/CMakeLists.txt
+++ b/examples/corelib/threads/semaphores/CMakeLists.txt
@@ -22,4 +22,5 @@ target_link_libraries(semaphores PUBLIC
install(TARGETS semaphores
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt
index 4d3e61050c0..ee351493cc1 100644
--- a/examples/corelib/threads/waitconditions/CMakeLists.txt
+++ b/examples/corelib/threads/waitconditions/CMakeLists.txt
@@ -22,4 +22,5 @@ target_link_libraries(waitconditions PUBLIC
install(TARGETS waitconditions
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt
index 9b0638bea20..68244a019f2 100644
--- a/examples/corelib/tools/contiguouscache/CMakeLists.txt
+++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(contiguouscache WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(contiguouscache
main.cpp
randomlistmodel.cpp randomlistmodel.h
)
@@ -23,4 +23,5 @@ target_link_libraries(contiguouscache PUBLIC
install(TARGETS contiguouscache
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt
index 2cab51c0732..c2d9f18a823 100644
--- a/examples/corelib/tools/customtype/CMakeLists.txt
+++ b/examples/corelib/tools/customtype/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(customtype WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(customtype
main.cpp
message.cpp message.h
)
@@ -23,4 +23,5 @@ target_link_libraries(customtype PUBLIC
install(TARGETS customtype
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt
index 06ed26ba485..27adf1f1b59 100644
--- a/examples/corelib/tools/customtypesending/CMakeLists.txt
+++ b/examples/corelib/tools/customtypesending/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(customtypesending WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(customtypesending
main.cpp
message.cpp message.h
window.cpp window.h
@@ -24,4 +24,5 @@ target_link_libraries(customtypesending PUBLIC
install(TARGETS customtypesending
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/dbus/chat/CMakeLists.txt b/examples/dbus/chat/CMakeLists.txt
index 85da98583ca..54becdb2d32 100644
--- a/examples/dbus/chat/CMakeLists.txt
+++ b/examples/dbus/chat/CMakeLists.txt
@@ -27,7 +27,7 @@ qt5_add_dbus_adaptor(chat_SRCS
chat_adaptor
)
# special case end
-add_qt_gui_executable(chat WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(chat
chat.cpp chat.h
chatmainwindow.ui
chatsetnickname.ui
@@ -40,4 +40,5 @@ target_link_libraries(chat PUBLIC
install(TARGETS chat
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/dbus/complexpingpong/CMakeLists.txt b/examples/dbus/complexpingpong/CMakeLists.txt
index fb96f826b47..d9b882657ee 100644
--- a/examples/dbus/complexpingpong/CMakeLists.txt
+++ b/examples/dbus/complexpingpong/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS DBus)
-add_qt_gui_executable(complexpong WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(complexpong
complexpong.cpp complexpong.h
)
target_link_libraries(complexpong PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(complexpong PUBLIC
install(TARGETS complexpong
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/dbus/listnames/CMakeLists.txt b/examples/dbus/listnames/CMakeLists.txt
index c888a1df49a..334d841cdf5 100644
--- a/examples/dbus/listnames/CMakeLists.txt
+++ b/examples/dbus/listnames/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS DBus)
-add_qt_gui_executable(listnames WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(listnames
listnames.cpp
)
target_link_libraries(listnames PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(listnames PUBLIC
install(TARGETS listnames
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/dbus/pingpong/CMakeLists.txt b/examples/dbus/pingpong/CMakeLists.txt
index 1e93e3cef31..4cae8ecfdf8 100644
--- a/examples/dbus/pingpong/CMakeLists.txt
+++ b/examples/dbus/pingpong/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS DBus)
-add_qt_gui_executable(pong WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(pong
ping-common.h
pong.cpp pong.h
)
@@ -24,4 +24,5 @@ target_link_libraries(pong PUBLIC
install(TARGETS pong
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
index cee3b2bb50e..18af20fe387 100644
--- a/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
+++ b/examples/dbus/remotecontrolledcar/car/CMakeLists.txt
@@ -23,7 +23,7 @@ qt5_add_dbus_adaptor(car_SRCS
car_adaptor
)
# special case end
-add_qt_gui_executable(car WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(car
car.cpp car.h
main.cpp
${car_SRCS} # special case
@@ -35,4 +35,5 @@ target_link_libraries(car PUBLIC
install(TARGETS car
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
index ee97e0d1e4c..06a975db7e9 100644
--- a/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
+++ b/examples/dbus/remotecontrolledcar/controller/CMakeLists.txt
@@ -21,7 +21,7 @@ qt5_add_dbus_interface(controller_SRCS
car_interface
)
# special case end
-add_qt_gui_executable(controller WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(controller
controller.cpp controller.h controller.ui
main.cpp
${controller_SRCS} # special case
@@ -33,4 +33,5 @@ target_link_libraries(controller PUBLIC
install(TARGETS controller
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/embedded/digiflip/CMakeLists.txt b/examples/embedded/digiflip/CMakeLists.txt
index ee20c34c114..340dc34859c 100644
--- a/examples/embedded/digiflip/CMakeLists.txt
+++ b/examples/embedded/digiflip/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(digiflip WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(digiflip
digiflip.cpp
)
target_link_libraries(digiflip PUBLIC
@@ -22,4 +22,5 @@ target_link_libraries(digiflip PUBLIC
install(TARGETS digiflip
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/embedded/flickable/CMakeLists.txt b/examples/embedded/flickable/CMakeLists.txt
index c71699b693a..cc2611cc1bc 100644
--- a/examples/embedded/flickable/CMakeLists.txt
+++ b/examples/embedded/flickable/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(flickable WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(flickable
flickable.cpp flickable.h
main.cpp
)
@@ -23,4 +23,5 @@ target_link_libraries(flickable PUBLIC
install(TARGETS flickable
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/embedded/flightinfo/CMakeLists.txt b/examples/embedded/flightinfo/CMakeLists.txt
index e9055311143..4415ab91b53 100644
--- a/examples/embedded/flightinfo/CMakeLists.txt
+++ b/examples/embedded/flightinfo/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(flightinfo WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(flightinfo
flightinfo.cpp
form.ui
flightinfo.qrc # special case: add
@@ -26,4 +26,5 @@ target_link_libraries(flightinfo PUBLIC
install(TARGETS flightinfo
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/embedded/lightmaps/CMakeLists.txt b/examples/embedded/lightmaps/CMakeLists.txt
index ea7239b7ac9..3a3ab6fd43a 100644
--- a/examples/embedded/lightmaps/CMakeLists.txt
+++ b/examples/embedded/lightmaps/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(lightmaps WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(lightmaps
lightmaps.cpp lightmaps.h
main.cpp
mapzoom.cpp mapzoom.h
@@ -27,4 +27,5 @@ target_link_libraries(lightmaps PUBLIC
install(TARGETS lightmaps
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/embedded/raycasting/CMakeLists.txt b/examples/embedded/raycasting/CMakeLists.txt
index d27dbbe7a4f..64844bca567 100644
--- a/examples/embedded/raycasting/CMakeLists.txt
+++ b/examples/embedded/raycasting/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(raycasting WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(raycasting
raycasting.cpp raycasting.qrc
)
target_link_libraries(raycasting PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(raycasting PUBLIC
install(TARGETS raycasting
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/embedded/styleexample/CMakeLists.txt b/examples/embedded/styleexample/CMakeLists.txt
index 34ab6e4a223..44b9a8ae1eb 100644
--- a/examples/embedded/styleexample/CMakeLists.txt
+++ b/examples/embedded/styleexample/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(styleexample WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(styleexample
main.cpp
stylewidget.cpp stylewidget.h stylewidget.ui
styleexample.qrc # special case: add
@@ -24,4 +24,5 @@ target_link_libraries(styleexample PUBLIC
install(TARGETS styleexample
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt
index 7fe1aed8dea..8d2d51a97f0 100644
--- a/examples/gui/analogclock/CMakeLists.txt
+++ b/examples/gui/analogclock/CMakeLists.txt
@@ -13,7 +13,7 @@ set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
-add_qt_gui_executable(gui_analogclock WIN32 MACOSX_BUNDLE # special case: renamed target
+add_qt_gui_executable(gui_analogclock # special case: renamed target
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
main.cpp
)
@@ -29,4 +29,5 @@ target_link_libraries(gui_analogclock PUBLIC
install(TARGETS gui_analogclock
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/gui/openglwindow/CMakeLists.txt b/examples/gui/openglwindow/CMakeLists.txt
index c77dabd0c1b..cde169deb57 100644
--- a/examples/gui/openglwindow/CMakeLists.txt
+++ b/examples/gui/openglwindow/CMakeLists.txt
@@ -13,7 +13,7 @@ set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
-add_qt_gui_executable(openglwindow WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(openglwindow
main.cpp
openglwindow.cpp openglwindow.h
)
@@ -28,4 +28,5 @@ target_link_libraries(openglwindow PUBLIC
install(TARGETS openglwindow
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt
index 9ddf9163696..eab79cee2f6 100644
--- a/examples/gui/rasterwindow/CMakeLists.txt
+++ b/examples/gui/rasterwindow/CMakeLists.txt
@@ -13,7 +13,7 @@ set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
-add_qt_gui_executable(rasterwindow WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(rasterwindow
main.cpp
rasterwindow.cpp rasterwindow.h
)
@@ -28,4 +28,5 @@ target_link_libraries(rasterwindow PUBLIC
install(TARGETS rasterwindow
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/bearermonitor/CMakeLists.txt b/examples/network/bearermonitor/CMakeLists.txt
index 55893a7138c..8cb67e13b6e 100644
--- a/examples/network/bearermonitor/CMakeLists.txt
+++ b/examples/network/bearermonitor/CMakeLists.txt
@@ -33,4 +33,5 @@ target_link_libraries(bearermonitor PUBLIC
install(TARGETS bearermonitor
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/blockingfortuneclient/CMakeLists.txt b/examples/network/blockingfortuneclient/CMakeLists.txt
index 47933d66ff4..f79e15cb59b 100644
--- a/examples/network/blockingfortuneclient/CMakeLists.txt
+++ b/examples/network/blockingfortuneclient/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(blockingfortuneclient WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(blockingfortuneclient
blockingclient.cpp blockingclient.h
fortunethread.cpp fortunethread.h
main.cpp
@@ -27,4 +27,5 @@ target_link_libraries(blockingfortuneclient PUBLIC
install(TARGETS blockingfortuneclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/broadcastreceiver/CMakeLists.txt b/examples/network/broadcastreceiver/CMakeLists.txt
index d8cdae0b42e..05074f6d919 100644
--- a/examples/network/broadcastreceiver/CMakeLists.txt
+++ b/examples/network/broadcastreceiver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(broadcastreceiver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(broadcastreceiver
main.cpp
receiver.cpp receiver.h
)
@@ -26,4 +26,5 @@ target_link_libraries(broadcastreceiver PUBLIC
install(TARGETS broadcastreceiver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/broadcastsender/CMakeLists.txt b/examples/network/broadcastsender/CMakeLists.txt
index 31681c29c33..323ea5e9cbf 100644
--- a/examples/network/broadcastsender/CMakeLists.txt
+++ b/examples/network/broadcastsender/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(broadcastsender WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(broadcastsender
main.cpp
sender.cpp sender.h
)
@@ -26,4 +26,5 @@ target_link_libraries(broadcastsender PUBLIC
install(TARGETS broadcastsender
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/dnslookup/CMakeLists.txt b/examples/network/dnslookup/CMakeLists.txt
index 8aa5bea4cbb..b79445370b7 100644
--- a/examples/network/dnslookup/CMakeLists.txt
+++ b/examples/network/dnslookup/CMakeLists.txt
@@ -25,4 +25,5 @@ target_link_libraries(dnslookup PUBLIC
install(TARGETS dnslookup
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/download/CMakeLists.txt b/examples/network/download/CMakeLists.txt
index 0ec20216b5b..2b48217c384 100644
--- a/examples/network/download/CMakeLists.txt
+++ b/examples/network/download/CMakeLists.txt
@@ -25,4 +25,5 @@ target_link_libraries(download PUBLIC
install(TARGETS download
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/downloadmanager/CMakeLists.txt b/examples/network/downloadmanager/CMakeLists.txt
index 574073c7eb1..b8eb8db4002 100644
--- a/examples/network/downloadmanager/CMakeLists.txt
+++ b/examples/network/downloadmanager/CMakeLists.txt
@@ -27,4 +27,5 @@ target_link_libraries(downloadmanager PUBLIC
install(TARGETS downloadmanager
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/fortuneclient/CMakeLists.txt b/examples/network/fortuneclient/CMakeLists.txt
index 6530cdcf00b..0169b4eb4ca 100644
--- a/examples/network/fortuneclient/CMakeLists.txt
+++ b/examples/network/fortuneclient/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(fortuneclient WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fortuneclient
client.cpp client.h
main.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(fortuneclient PUBLIC
install(TARGETS fortuneclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/fortuneserver/CMakeLists.txt b/examples/network/fortuneserver/CMakeLists.txt
index 43ca6f7d2b0..fb2a6814131 100644
--- a/examples/network/fortuneserver/CMakeLists.txt
+++ b/examples/network/fortuneserver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(fortuneserver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fortuneserver
main.cpp
server.cpp server.h
)
@@ -26,4 +26,5 @@ target_link_libraries(fortuneserver PUBLIC
install(TARGETS fortuneserver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/googlesuggest/CMakeLists.txt b/examples/network/googlesuggest/CMakeLists.txt
index b1556de464e..f0f7f143780 100644
--- a/examples/network/googlesuggest/CMakeLists.txt
+++ b/examples/network/googlesuggest/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(googlesuggest WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(googlesuggest
googlesuggest.cpp googlesuggest.h
main.cpp
searchbox.cpp searchbox.h
@@ -27,4 +27,5 @@ target_link_libraries(googlesuggest PUBLIC
install(TARGETS googlesuggest
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt
index 3da3b8c3ac7..890f2891a22 100644
--- a/examples/network/http/CMakeLists.txt
+++ b/examples/network/http/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(http WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(http
authenticationdialog.ui
httpwindow.cpp httpwindow.h
main.cpp
@@ -27,4 +27,5 @@ target_link_libraries(http PUBLIC
install(TARGETS http
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/loopback/CMakeLists.txt b/examples/network/loopback/CMakeLists.txt
index e6f46b0933d..4e4e265edd3 100644
--- a/examples/network/loopback/CMakeLists.txt
+++ b/examples/network/loopback/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(loopback WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(loopback
dialog.cpp dialog.h
main.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(loopback PUBLIC
install(TARGETS loopback
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/multicastreceiver/CMakeLists.txt b/examples/network/multicastreceiver/CMakeLists.txt
index eaabf8a5d52..19a062aff38 100644
--- a/examples/network/multicastreceiver/CMakeLists.txt
+++ b/examples/network/multicastreceiver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(multicastreceiver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(multicastreceiver
main.cpp
receiver.cpp receiver.h
)
@@ -26,4 +26,5 @@ target_link_libraries(multicastreceiver PUBLIC
install(TARGETS multicastreceiver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/multicastsender/CMakeLists.txt b/examples/network/multicastsender/CMakeLists.txt
index 8504bc36472..ba4386963e8 100644
--- a/examples/network/multicastsender/CMakeLists.txt
+++ b/examples/network/multicastsender/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(multicastsender WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(multicastsender
main.cpp
sender.cpp sender.h
)
@@ -26,4 +26,5 @@ target_link_libraries(multicastsender PUBLIC
install(TARGETS multicastsender
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/multistreamclient/CMakeLists.txt b/examples/network/multistreamclient/CMakeLists.txt
index c0091d10466..efb4c7bf35e 100644
--- a/examples/network/multistreamclient/CMakeLists.txt
+++ b/examples/network/multistreamclient/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(multistreamclient WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(multistreamclient
chatconsumer.cpp chatconsumer.h
client.cpp client.h
consumer.h
@@ -30,4 +30,5 @@ target_link_libraries(multistreamclient PUBLIC
install(TARGETS multistreamclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/multistreamserver/CMakeLists.txt b/examples/network/multistreamserver/CMakeLists.txt
index 44c36e43221..88aefc9af05 100644
--- a/examples/network/multistreamserver/CMakeLists.txt
+++ b/examples/network/multistreamserver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(multistreamserver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(multistreamserver
chatprovider.cpp chatprovider.h
main.cpp
movieprovider.cpp movieprovider.h
@@ -30,4 +30,5 @@ target_link_libraries(multistreamserver PUBLIC
install(TARGETS multistreamserver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/network-chat/CMakeLists.txt b/examples/network/network-chat/CMakeLists.txt
index be60e01f142..c3cbf32d9f7 100644
--- a/examples/network/network-chat/CMakeLists.txt
+++ b/examples/network/network-chat/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(network-chat WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(network-chat
chatdialog.cpp chatdialog.h chatdialog.ui
client.cpp client.h
connection.cpp connection.h
@@ -30,4 +30,5 @@ target_link_libraries(network-chat PUBLIC
install(TARGETS network-chat
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/securesocketclient/CMakeLists.txt b/examples/network/securesocketclient/CMakeLists.txt
index f00d138d805..d514d21508d 100644
--- a/examples/network/securesocketclient/CMakeLists.txt
+++ b/examples/network/securesocketclient/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(securesocketclient WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(securesocketclient
certificateinfo.cpp certificateinfo.h certificateinfo.ui
main.cpp
securesocketclient.qrc
@@ -29,4 +29,5 @@ target_link_libraries(securesocketclient PUBLIC
install(TARGETS securesocketclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/secureudpclient/CMakeLists.txt b/examples/network/secureudpclient/CMakeLists.txt
index 6af110c4122..08854bd334e 100644
--- a/examples/network/secureudpclient/CMakeLists.txt
+++ b/examples/network/secureudpclient/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Network)
-add_qt_gui_executable(secureudpclient WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(secureudpclient
addressdialog.cpp addressdialog.h addressdialog.ui
association.cpp association.h
main.cpp
@@ -28,4 +28,5 @@ target_link_libraries(secureudpclient PUBLIC
install(TARGETS secureudpclient
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/secureudpserver/CMakeLists.txt b/examples/network/secureudpserver/CMakeLists.txt
index f30d8808009..e991c9822c9 100644
--- a/examples/network/secureudpserver/CMakeLists.txt
+++ b/examples/network/secureudpserver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Network)
-add_qt_gui_executable(secureudpserver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(secureudpserver
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
nicselector.cpp nicselector.h nicselector.ui
@@ -28,4 +28,5 @@ target_link_libraries(secureudpserver PUBLIC
install(TARGETS secureudpserver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/threadedfortuneserver/CMakeLists.txt b/examples/network/threadedfortuneserver/CMakeLists.txt
index ce5c0e0d194..4e5f61ceca8 100644
--- a/examples/network/threadedfortuneserver/CMakeLists.txt
+++ b/examples/network/threadedfortuneserver/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(threadedfortuneserver WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(threadedfortuneserver
dialog.cpp dialog.h
fortuneserver.cpp fortuneserver.h
fortunethread.cpp fortunethread.h
@@ -28,4 +28,5 @@ target_link_libraries(threadedfortuneserver PUBLIC
install(TARGETS threadedfortuneserver
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/network/torrent/.prev_CMakeLists.txt b/examples/network/torrent/.prev_CMakeLists.txt
index 3673b7e05a0..3ed78c7e3b4 100644
--- a/examples/network/torrent/.prev_CMakeLists.txt
+++ b/examples/network/torrent/.prev_CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(torrent WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(torrent
addtorrentdialog.cpp addtorrentdialog.h
bencodeparser.cpp bencodeparser.h
connectionmanager.cpp connectionmanager.h
diff --git a/examples/network/torrent/CMakeLists.txt b/examples/network/torrent/CMakeLists.txt
index 86bad72ab7e..205b1b45272 100644
--- a/examples/network/torrent/CMakeLists.txt
+++ b/examples/network/torrent/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(torrent WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(torrent
addtorrentdialog.cpp addtorrentdialog.h
bencodeparser.cpp bencodeparser.h
connectionmanager.cpp connectionmanager.h
@@ -39,4 +39,5 @@ target_link_libraries(torrent PUBLIC
install(TARGETS torrent
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qpa/qrasterwindow/CMakeLists.txt b/examples/qpa/qrasterwindow/CMakeLists.txt
index f718796eb94..3baff1ed61d 100644
--- a/examples/qpa/qrasterwindow/CMakeLists.txt
+++ b/examples/qpa/qrasterwindow/CMakeLists.txt
@@ -13,7 +13,7 @@ set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
-add_qt_gui_executable(qrasterwindow WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(qrasterwindow
main.cpp
)
target_link_libraries(qrasterwindow PUBLIC Qt::Gui) # special case: add
@@ -21,4 +21,5 @@ target_link_libraries(qrasterwindow PUBLIC Qt::Gui) # special case: add
install(TARGETS qrasterwindow
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qpa/windows/CMakeLists.txt b/examples/qpa/windows/CMakeLists.txt
index 2bd7b6fd850..afd1b57615e 100644
--- a/examples/qpa/windows/CMakeLists.txt
+++ b/examples/qpa/windows/CMakeLists.txt
@@ -30,4 +30,5 @@ target_link_libraries(windows PUBLIC
install(TARGETS windows
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt
index 448bcf848e1..f75291cabd0 100644
--- a/examples/qtconcurrent/imagescaling/CMakeLists.txt
+++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Concurrent)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(imagescaling WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(imagescaling
imagescaling.cpp imagescaling.h
main.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(imagescaling PUBLIC
install(TARGETS imagescaling
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt
index a5bac9a9738..f6d72538474 100644
--- a/examples/qtconcurrent/map/CMakeLists.txt
+++ b/examples/qtconcurrent/map/CMakeLists.txt
@@ -24,4 +24,5 @@ target_link_libraries(mapdemo PUBLIC
install(TARGETS mapdemo
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt
index 8a61fd0e0a9..0eff435ed25 100644
--- a/examples/qtconcurrent/progressdialog/CMakeLists.txt
+++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt
@@ -25,4 +25,5 @@ target_link_libraries(progressdialog PUBLIC
install(TARGETS progressdialog
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt
index f71a7894234..95f53e8637f 100644
--- a/examples/qtconcurrent/runfunction/CMakeLists.txt
+++ b/examples/qtconcurrent/runfunction/CMakeLists.txt
@@ -25,4 +25,5 @@ target_link_libraries(runfunction PUBLIC
install(TARGETS runfunction
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt
index 4c6402102d2..8e79f716c6b 100644
--- a/examples/qtconcurrent/wordcount/CMakeLists.txt
+++ b/examples/qtconcurrent/wordcount/CMakeLists.txt
@@ -25,4 +25,5 @@ target_link_libraries(wordcount PUBLIC
install(TARGETS wordcount
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtestlib/tutorial1/CMakeLists.txt b/examples/qtestlib/tutorial1/CMakeLists.txt
index fb834211a7f..b1bc5203394 100644
--- a/examples/qtestlib/tutorial1/CMakeLists.txt
+++ b/examples/qtestlib/tutorial1/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Test)
-add_qt_gui_executable(tutorial1 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tutorial1
testqstring.cpp
)
target_link_libraries(tutorial1 PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(tutorial1 PUBLIC
install(TARGETS tutorial1
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtestlib/tutorial2/CMakeLists.txt b/examples/qtestlib/tutorial2/CMakeLists.txt
index 600cbb2ddd4..1c89575d140 100644
--- a/examples/qtestlib/tutorial2/CMakeLists.txt
+++ b/examples/qtestlib/tutorial2/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Test)
-add_qt_gui_executable(tutorial2 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tutorial2
testqstring.cpp
)
target_link_libraries(tutorial2 PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(tutorial2 PUBLIC
install(TARGETS tutorial2
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtestlib/tutorial3/CMakeLists.txt b/examples/qtestlib/tutorial3/CMakeLists.txt
index 457495997fc..f6ef8776f53 100644
--- a/examples/qtestlib/tutorial3/CMakeLists.txt
+++ b/examples/qtestlib/tutorial3/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Test)
-add_qt_gui_executable(tutorial3 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tutorial3
testgui.cpp
)
target_link_libraries(tutorial3 PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(tutorial3 PUBLIC
install(TARGETS tutorial3
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtestlib/tutorial4/CMakeLists.txt b/examples/qtestlib/tutorial4/CMakeLists.txt
index 6d2c0f2ce12..11d62ad582b 100644
--- a/examples/qtestlib/tutorial4/CMakeLists.txt
+++ b/examples/qtestlib/tutorial4/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Test)
-add_qt_gui_executable(tutorial4 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tutorial4
testgui.cpp
)
target_link_libraries(tutorial4 PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(tutorial4 PUBLIC
install(TARGETS tutorial4
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/qtestlib/tutorial5/CMakeLists.txt b/examples/qtestlib/tutorial5/CMakeLists.txt
index b0e2995b2ae..799cff62c60 100644
--- a/examples/qtestlib/tutorial5/CMakeLists.txt
+++ b/examples/qtestlib/tutorial5/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Test)
-add_qt_gui_executable(tutorial5 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tutorial5
benchmarking.cpp
)
target_link_libraries(tutorial5 PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(tutorial5 PUBLIC
install(TARGETS tutorial5
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/books/CMakeLists.txt b/examples/sql/books/CMakeLists.txt
index cfee3e237da..e9044e34b8f 100644
--- a/examples/sql/books/CMakeLists.txt
+++ b/examples/sql/books/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(books WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(books
bookdelegate.cpp bookdelegate.h
books.qrc
bookwindow.cpp bookwindow.h bookwindow.ui
@@ -32,4 +32,5 @@ target_link_libraries(books PUBLIC
install(TARGETS books
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/cachedtable/CMakeLists.txt b/examples/sql/cachedtable/CMakeLists.txt
index 16ef886b1c4..f3341791a10 100644
--- a/examples/sql/cachedtable/CMakeLists.txt
+++ b/examples/sql/cachedtable/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(cachedtable WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(cachedtable
../connection.h
main.cpp
tableeditor.cpp tableeditor.h
@@ -27,4 +27,5 @@ target_link_libraries(cachedtable PUBLIC
install(TARGETS cachedtable
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/drilldown/CMakeLists.txt b/examples/sql/drilldown/CMakeLists.txt
index ed411d1ca34..97a26202097 100644
--- a/examples/sql/drilldown/CMakeLists.txt
+++ b/examples/sql/drilldown/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(drilldown WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(drilldown
../connection.h
drilldown.qrc
imageitem.cpp imageitem.h
@@ -30,4 +30,5 @@ target_link_libraries(drilldown PUBLIC
install(TARGETS drilldown
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/masterdetail/CMakeLists.txt b/examples/sql/masterdetail/CMakeLists.txt
index 832cbdea8b0..59ce1eb77d5 100644
--- a/examples/sql/masterdetail/CMakeLists.txt
+++ b/examples/sql/masterdetail/CMakeLists.txt
@@ -15,7 +15,7 @@ find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Xml)
-add_qt_gui_executable(masterdetail WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(masterdetail
database.h
dialog.cpp dialog.h
main.cpp
@@ -31,4 +31,5 @@ target_link_libraries(masterdetail PUBLIC
install(TARGETS masterdetail
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/querymodel/CMakeLists.txt b/examples/sql/querymodel/CMakeLists.txt
index 6dc59a4bb76..1f7bb512fc6 100644
--- a/examples/sql/querymodel/CMakeLists.txt
+++ b/examples/sql/querymodel/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(querymodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(querymodel
../connection.h
customsqlmodel.cpp customsqlmodel.h
editablesqlmodel.cpp editablesqlmodel.h
@@ -28,4 +28,5 @@ target_link_libraries(querymodel PUBLIC
install(TARGETS querymodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/relationaltablemodel/CMakeLists.txt b/examples/sql/relationaltablemodel/CMakeLists.txt
index 0d35a9abdbc..6a9840b9df7 100644
--- a/examples/sql/relationaltablemodel/CMakeLists.txt
+++ b/examples/sql/relationaltablemodel/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(relationaltablemodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(relationaltablemodel
../connection.h
relationaltablemodel.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(relationaltablemodel PUBLIC
install(TARGETS relationaltablemodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/sqlbrowser/CMakeLists.txt b/examples/sql/sqlbrowser/CMakeLists.txt
index f52de00ce66..3f4d7cf9084 100644
--- a/examples/sql/sqlbrowser/CMakeLists.txt
+++ b/examples/sql/sqlbrowser/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(sqlbrowser WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(sqlbrowser
browser.cpp browser.h
browserwidget.ui
connectionwidget.cpp connectionwidget.h
@@ -29,4 +29,5 @@ target_link_libraries(sqlbrowser PUBLIC
install(TARGETS sqlbrowser
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/sqlwidgetmapper/CMakeLists.txt b/examples/sql/sqlwidgetmapper/CMakeLists.txt
index 48e68209c5d..0ec052db0a1 100644
--- a/examples/sql/sqlwidgetmapper/CMakeLists.txt
+++ b/examples/sql/sqlwidgetmapper/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(sqlwidgetmapper WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(sqlwidgetmapper
main.cpp
window.cpp window.h
)
@@ -26,4 +26,5 @@ target_link_libraries(sqlwidgetmapper PUBLIC
install(TARGETS sqlwidgetmapper
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/sql/tablemodel/CMakeLists.txt b/examples/sql/tablemodel/CMakeLists.txt
index fb7dbac9275..8f7cfa3439e 100644
--- a/examples/sql/tablemodel/CMakeLists.txt
+++ b/examples/sql/tablemodel/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Sql)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(tablemodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tablemodel
../connection.h
tablemodel.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(tablemodel PUBLIC
install(TARGETS tablemodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/animation/animatedtiles/CMakeLists.txt b/examples/widgets/animation/animatedtiles/CMakeLists.txt
index e3fa88aebba..ea48cf56a39 100644
--- a/examples/widgets/animation/animatedtiles/CMakeLists.txt
+++ b/examples/widgets/animation/animatedtiles/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(animatedtiles WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(animatedtiles
animatedtiles.qrc
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(animatedtiles PUBLIC
install(TARGETS animatedtiles
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/animation/easing/CMakeLists.txt b/examples/widgets/animation/easing/CMakeLists.txt
index 441b27b0c49..840e4e59abf 100644
--- a/examples/widgets/animation/easing/CMakeLists.txt
+++ b/examples/widgets/animation/easing/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(easing WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(easing
animation.h
easing.qrc
form.ui
@@ -27,4 +27,5 @@ target_link_libraries(easing PUBLIC
install(TARGETS easing
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/animation/moveblocks/CMakeLists.txt b/examples/widgets/animation/moveblocks/CMakeLists.txt
index 971bf2e7e53..6f8aa9cefff 100644
--- a/examples/widgets/animation/moveblocks/CMakeLists.txt
+++ b/examples/widgets/animation/moveblocks/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(moveblocks WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(moveblocks
main.cpp
)
target_link_libraries(moveblocks PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(moveblocks PUBLIC
install(TARGETS moveblocks
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/animation/states/CMakeLists.txt b/examples/widgets/animation/states/CMakeLists.txt
index bd353422d28..5974f28de80 100644
--- a/examples/widgets/animation/states/CMakeLists.txt
+++ b/examples/widgets/animation/states/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(states WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(states
main.cpp
states.qrc
)
@@ -24,4 +24,5 @@ target_link_libraries(states PUBLIC
install(TARGETS states
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/animation/stickman/CMakeLists.txt b/examples/widgets/animation/stickman/CMakeLists.txt
index 90bc09e5d74..62a35ed796c 100644
--- a/examples/widgets/animation/stickman/CMakeLists.txt
+++ b/examples/widgets/animation/stickman/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(stickman WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(stickman
animation.cpp animation.h
graphicsview.cpp graphicsview.h
lifecycle.cpp lifecycle.h
@@ -29,4 +29,5 @@ target_link_libraries(stickman PUBLIC
install(TARGETS stickman
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/animation/sub-attaq/CMakeLists.txt b/examples/widgets/animation/sub-attaq/CMakeLists.txt
index 883c1cd0c58..969a24c1da4 100644
--- a/examples/widgets/animation/sub-attaq/CMakeLists.txt
+++ b/examples/widgets/animation/sub-attaq/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS OpenGL) # special case
-add_qt_gui_executable(sub-attaq WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(sub-attaq
animationmanager.cpp animationmanager.h
boat.cpp boat.h boat_p.h
bomb.cpp bomb.h
@@ -40,4 +40,5 @@ endif()
install(TARGETS sub-attaq
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/desktop/screenshot/CMakeLists.txt b/examples/widgets/desktop/screenshot/CMakeLists.txt
index 4c207f1bef5..494515029d1 100644
--- a/examples/widgets/desktop/screenshot/CMakeLists.txt
+++ b/examples/widgets/desktop/screenshot/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(screenshot WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(screenshot
main.cpp
screenshot.cpp screenshot.h
)
@@ -24,4 +24,5 @@ target_link_libraries(screenshot PUBLIC
install(TARGETS screenshot
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/desktop/systray/CMakeLists.txt b/examples/widgets/desktop/systray/CMakeLists.txt
index 754ccad8e3c..cd47d5d8337 100644
--- a/examples/widgets/desktop/systray/CMakeLists.txt
+++ b/examples/widgets/desktop/systray/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(systray WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(systray
main.cpp
systray.qrc
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(systray PUBLIC
install(TARGETS systray
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/classwizard/CMakeLists.txt b/examples/widgets/dialogs/classwizard/CMakeLists.txt
index 5a57c5905ac..1f763111d5b 100644
--- a/examples/widgets/dialogs/classwizard/CMakeLists.txt
+++ b/examples/widgets/dialogs/classwizard/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(classwizard WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(classwizard
classwizard.cpp classwizard.h classwizard.qrc
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(classwizard PUBLIC
install(TARGETS classwizard
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/extension/CMakeLists.txt b/examples/widgets/dialogs/extension/CMakeLists.txt
index fa35d52048b..f21fddf7227 100644
--- a/examples/widgets/dialogs/extension/CMakeLists.txt
+++ b/examples/widgets/dialogs/extension/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(extension WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(extension
finddialog.cpp finddialog.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(extension PUBLIC
install(TARGETS extension
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/findfiles/CMakeLists.txt b/examples/widgets/dialogs/findfiles/CMakeLists.txt
index 12ce6ce05ee..9865d67076b 100644
--- a/examples/widgets/dialogs/findfiles/CMakeLists.txt
+++ b/examples/widgets/dialogs/findfiles/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(findfiles WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(findfiles
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(findfiles PUBLIC
install(TARGETS findfiles
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/licensewizard/CMakeLists.txt b/examples/widgets/dialogs/licensewizard/CMakeLists.txt
index a82800363e0..b09c1a48027 100644
--- a/examples/widgets/dialogs/licensewizard/CMakeLists.txt
+++ b/examples/widgets/dialogs/licensewizard/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport)
-add_qt_gui_executable(licensewizard WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(licensewizard
licensewizard.cpp licensewizard.h licensewizard.qrc
main.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(licensewizard PUBLIC
install(TARGETS licensewizard
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
index 91c74b71e11..0cce717924a 100644
--- a/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
+++ b/examples/widgets/dialogs/standarddialogs/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(standarddialogs WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(standarddialogs
dialog.cpp dialog.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(standarddialogs PUBLIC
install(TARGETS standarddialogs
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/tabdialog/CMakeLists.txt b/examples/widgets/dialogs/tabdialog/CMakeLists.txt
index ec88fd66d02..50d6209cb80 100644
--- a/examples/widgets/dialogs/tabdialog/CMakeLists.txt
+++ b/examples/widgets/dialogs/tabdialog/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(tabdialog WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tabdialog
main.cpp
tabdialog.cpp tabdialog.h
)
@@ -24,4 +24,5 @@ target_link_libraries(tabdialog PUBLIC
install(TARGETS tabdialog
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
index 394816619d3..a8601f02ecd 100644
--- a/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
+++ b/examples/widgets/dialogs/trivialwizard/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(trivialwizard WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(trivialwizard
trivialwizard.cpp
)
target_link_libraries(trivialwizard PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(trivialwizard PUBLIC
install(TARGETS trivialwizard
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
index d7ec690a986..a8fbaa17edd 100644
--- a/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
+++ b/examples/widgets/draganddrop/draggableicons/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(draggableicons WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(draggableicons
draggableicons.qrc
dragwidget.cpp dragwidget.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(draggableicons PUBLIC
install(TARGETS draggableicons
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
index c145771015a..9a0c6addc9b 100644
--- a/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
+++ b/examples/widgets/draganddrop/draggabletext/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(draggabletext WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(draggabletext
draggabletext.qrc
dragwidget.cpp dragwidget.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(draggabletext PUBLIC
install(TARGETS draggabletext
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/draganddrop/dropsite/CMakeLists.txt b/examples/widgets/draganddrop/dropsite/CMakeLists.txt
index 863a757f39c..5b6e5be4357 100644
--- a/examples/widgets/draganddrop/dropsite/CMakeLists.txt
+++ b/examples/widgets/draganddrop/dropsite/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(dropsite WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dropsite
droparea.cpp droparea.h
dropsitewindow.cpp dropsitewindow.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(dropsite PUBLIC
install(TARGETS dropsite
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
index d7acb41b219..e1888ab59c4 100644
--- a/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
+++ b/examples/widgets/draganddrop/fridgemagnets/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(fridgemagnets WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fridgemagnets
draglabel.cpp draglabel.h
dragwidget.cpp dragwidget.h
fridgemagnets.qrc
@@ -26,4 +26,5 @@ target_link_libraries(fridgemagnets PUBLIC
install(TARGETS fridgemagnets
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/draganddrop/puzzle/CMakeLists.txt b/examples/widgets/draganddrop/puzzle/CMakeLists.txt
index 44191011177..267aa6fbe70 100644
--- a/examples/widgets/draganddrop/puzzle/CMakeLists.txt
+++ b/examples/widgets/draganddrop/puzzle/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(draganddrop_puzzle WIN32 MACOSX_BUNDLE # special case: renamed puzzle
+add_qt_gui_executable(draganddrop_puzzle # special case: renamed puzzle
main.cpp
mainwindow.cpp mainwindow.h
pieceslist.cpp pieceslist.h
@@ -27,4 +27,5 @@ target_link_libraries(draganddrop_puzzle PUBLIC # special case: renamed puzzle
install(TARGETS draganddrop_puzzle # special case: renamed puzzle
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/effects/blurpicker/CMakeLists.txt b/examples/widgets/effects/blurpicker/CMakeLists.txt
index f5b7047b8aa..ddb36841cfc 100644
--- a/examples/widgets/effects/blurpicker/CMakeLists.txt
+++ b/examples/widgets/effects/blurpicker/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(blurpicker WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(blurpicker
blureffect.cpp blureffect.h
blurpicker.cpp blurpicker.h blurpicker.qrc
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(blurpicker PUBLIC
install(TARGETS blurpicker
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/effects/fademessage/CMakeLists.txt b/examples/widgets/effects/fademessage/CMakeLists.txt
index e53fc405f76..42c01c00e0c 100644
--- a/examples/widgets/effects/fademessage/CMakeLists.txt
+++ b/examples/widgets/effects/fademessage/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(fademessage WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fademessage
fademessage.cpp fademessage.h fademessage.qrc
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(fademessage PUBLIC
install(TARGETS fademessage
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/gestures/imagegestures/CMakeLists.txt b/examples/widgets/gestures/imagegestures/CMakeLists.txt
index 75f2b981b79..5cef59b15e4 100644
--- a/examples/widgets/gestures/imagegestures/CMakeLists.txt
+++ b/examples/widgets/gestures/imagegestures/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(imagegestures WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(imagegestures
imagewidget.cpp imagewidget.h
main.cpp
mainwidget.cpp mainwidget.h
@@ -25,4 +25,5 @@ target_link_libraries(imagegestures PUBLIC
install(TARGETS imagegestures
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
index 9676dbbcbad..7137e76d9bc 100644
--- a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(anchorlayout WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(anchorlayout
main.cpp
)
target_link_libraries(anchorlayout PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(anchorlayout PUBLIC
install(TARGETS anchorlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
index 982fd541c60..afe4475bbfa 100644
--- a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
+++ b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(basicgraphicslayouts WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(basicgraphicslayouts
basicgraphicslayouts.qrc
layoutitem.cpp layoutitem.h
main.cpp
@@ -26,4 +26,5 @@ target_link_libraries(basicgraphicslayouts PUBLIC
install(TARGETS basicgraphicslayouts
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/boxes/CMakeLists.txt b/examples/widgets/graphicsview/boxes/CMakeLists.txt
index b5441bcfdf5..856dfd17164 100644
--- a/examples/widgets/graphicsview/boxes/CMakeLists.txt
+++ b/examples/widgets/graphicsview/boxes/CMakeLists.txt
@@ -15,7 +15,7 @@ find_package(Qt5 COMPONENTS OpenGL)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(boxes WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(boxes
3rdparty/fbm.c 3rdparty/fbm.h
boxes.qrc
glbuffers.cpp glbuffers.h
@@ -35,4 +35,5 @@ target_link_libraries(boxes PUBLIC
install(TARGETS boxes
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/chip/CMakeLists.txt b/examples/widgets/graphicsview/chip/CMakeLists.txt
index 141645a22c6..f02cbacf37f 100644
--- a/examples/widgets/graphicsview/chip/CMakeLists.txt
+++ b/examples/widgets/graphicsview/chip/CMakeLists.txt
@@ -15,7 +15,7 @@ find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS OpenGL) # special case
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(chip WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(chip
chip.cpp chip.h
images.qrc
main.cpp
@@ -35,4 +35,5 @@ endif()
install(TARGETS chip
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
index 90018588170..2817710600f 100644
--- a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
+++ b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(collidingmice WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(collidingmice
main.cpp
mice.qrc
mouse.cpp mouse.h
@@ -25,4 +25,5 @@ target_link_libraries(collidingmice PUBLIC
install(TARGETS collidingmice
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
index bfdd3b8f5b0..b1baf34b2d2 100644
--- a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
+++ b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(diagramscene WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(diagramscene
arrow.cpp arrow.h
diagramitem.cpp diagramitem.h
diagramscene.cpp diagramscene.h diagramscene.qrc
@@ -28,4 +28,5 @@ target_link_libraries(diagramscene PUBLIC
install(TARGETS diagramscene
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
index d85dcd1ff94..df6d2ec4e81 100644
--- a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
+++ b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(dragdroprobot WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dragdroprobot
coloritem.cpp coloritem.h
main.cpp
robot.cpp robot.h robot.qrc
@@ -25,4 +25,5 @@ target_link_libraries(dragdroprobot PUBLIC
install(TARGETS dragdroprobot
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
index b1e04b2a20b..5fc7a424b0c 100644
--- a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
+++ b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(elasticnodes WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(elasticnodes
edge.cpp edge.h
graphwidget.cpp graphwidget.h
main.cpp
@@ -26,4 +26,5 @@ target_link_libraries(elasticnodes PUBLIC
install(TARGETS elasticnodes
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
index fc9f6086cef..bfa68f15cb7 100644
--- a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
+++ b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(embeddeddialogs WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(embeddeddialogs
customproxy.cpp customproxy.h
embeddeddialog.cpp embeddeddialog.h embeddeddialog.ui
embeddeddialogs.qrc
@@ -26,4 +26,5 @@ target_link_libraries(embeddeddialogs PUBLIC
install(TARGETS embeddeddialogs
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
index ef5a4d55642..14b6ea8561d 100644
--- a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(graphicsview_flowlayout WIN32 MACOSX_BUNDLE # special case: renamed flowlayout
+add_qt_gui_executable(graphicsview_flowlayout # special case: renamed flowlayout
flowlayout.cpp flowlayout.h
main.cpp
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(graphicsview_flowlayout PUBLIC # special case: renamed flo
install(TARGETS graphicsview_flowlayout # special case: renamed flowlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/padnavigator/CMakeLists.txt b/examples/widgets/graphicsview/padnavigator/CMakeLists.txt
index e995f2a16e9..2db8aa1cded 100644
--- a/examples/widgets/graphicsview/padnavigator/CMakeLists.txt
+++ b/examples/widgets/graphicsview/padnavigator/CMakeLists.txt
@@ -34,4 +34,5 @@ endif()
install(TARGETS padnavigator
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
index bc1564cb8c9..f8def269b6f 100644
--- a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(simpleanchorlayout WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(simpleanchorlayout
main.cpp
)
target_link_libraries(simpleanchorlayout PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(simpleanchorlayout PUBLIC
install(TARGETS simpleanchorlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
index 22e92cc68b1..939e6c3fc77 100644
--- a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
+++ b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(weatheranchorlayout WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(weatheranchorlayout
main.cpp
weatheranchorlayout.qrc
)
@@ -24,4 +24,5 @@ target_link_libraries(weatheranchorlayout PUBLIC
install(TARGETS weatheranchorlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/addressbook/CMakeLists.txt b/examples/widgets/itemviews/addressbook/CMakeLists.txt
index 2831e860a55..8b0b8c9a9c0 100644
--- a/examples/widgets/itemviews/addressbook/CMakeLists.txt
+++ b/examples/widgets/itemviews/addressbook/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(addressbook WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(addressbook
adddialog.cpp adddialog.h
addresswidget.cpp addresswidget.h
main.cpp
@@ -28,4 +28,5 @@ target_link_libraries(addressbook PUBLIC
install(TARGETS addressbook
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
index 8c4d84431e1..234ab0eb33a 100644
--- a/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/basicsortfiltermodel/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(basicsortfiltermodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(basicsortfiltermodel
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(basicsortfiltermodel PUBLIC
install(TARGETS basicsortfiltermodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/chart/CMakeLists.txt b/examples/widgets/itemviews/chart/CMakeLists.txt
index 7aceadab54b..10327842030 100644
--- a/examples/widgets/itemviews/chart/CMakeLists.txt
+++ b/examples/widgets/itemviews/chart/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(chart WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(chart
chart.qrc
main.cpp
mainwindow.cpp mainwindow.h
@@ -26,4 +26,5 @@ target_link_libraries(chart PUBLIC
install(TARGETS chart
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
index e3cea3e2351..d3648bf3e5d 100644
--- a/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
+++ b/examples/widgets/itemviews/coloreditorfactory/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(coloreditorfactory WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(coloreditorfactory
colorlisteditor.cpp colorlisteditor.h
main.cpp
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(coloreditorfactory PUBLIC
install(TARGETS coloreditorfactory
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
index 175f78e7732..5134666a3a3 100644
--- a/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
+++ b/examples/widgets/itemviews/combowidgetmapper/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(combowidgetmapper WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(combowidgetmapper
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(combowidgetmapper PUBLIC
install(TARGETS combowidgetmapper
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
index 2c3627657ae..2981ea3d452 100644
--- a/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/customsortfiltermodel/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(customsortfiltermodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(customsortfiltermodel
customsortfiltermodel.qrc
filterwidget.cpp filterwidget.h
main.cpp
@@ -27,4 +27,5 @@ target_link_libraries(customsortfiltermodel PUBLIC
install(TARGETS customsortfiltermodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/dirview/CMakeLists.txt b/examples/widgets/itemviews/dirview/CMakeLists.txt
index 105d420f1af..818fe8323e7 100644
--- a/examples/widgets/itemviews/dirview/CMakeLists.txt
+++ b/examples/widgets/itemviews/dirview/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(dirview WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dirview
main.cpp
)
target_link_libraries(dirview PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(dirview PUBLIC
install(TARGETS dirview
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
index f3e574c8110..d0bc1ea930e 100644
--- a/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(editabletreemodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(editabletreemodel
editabletreemodel.qrc
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
@@ -27,4 +27,5 @@ target_link_libraries(editabletreemodel PUBLIC
install(TARGETS editabletreemodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/fetchmore/CMakeLists.txt b/examples/widgets/itemviews/fetchmore/CMakeLists.txt
index be2771970a2..3880c610786 100644
--- a/examples/widgets/itemviews/fetchmore/CMakeLists.txt
+++ b/examples/widgets/itemviews/fetchmore/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(fetchmore WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fetchmore
filelistmodel.cpp filelistmodel.h
main.cpp
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(fetchmore PUBLIC
install(TARGETS fetchmore
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/flattreeview/CMakeLists.txt b/examples/widgets/itemviews/flattreeview/CMakeLists.txt
index b026b2442f3..792287ff32d 100644
--- a/examples/widgets/itemviews/flattreeview/CMakeLists.txt
+++ b/examples/widgets/itemviews/flattreeview/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(flattreeview WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(flattreeview
main.cpp
)
target_link_libraries(flattreeview PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(flattreeview PUBLIC
install(TARGETS flattreeview
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
index fee5570bd60..a075fdc4609 100644
--- a/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
+++ b/examples/widgets/itemviews/frozencolumn/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(frozencolumn WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(frozencolumn
freezetablewidget.cpp freezetablewidget.h
grades.qrc
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(frozencolumn PUBLIC
install(TARGETS frozencolumn
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/interview/CMakeLists.txt b/examples/widgets/itemviews/interview/CMakeLists.txt
index 76a145c7d8b..6da99388d12 100644
--- a/examples/widgets/itemviews/interview/CMakeLists.txt
+++ b/examples/widgets/itemviews/interview/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(interview WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(interview
interview.qrc
main.cpp
model.cpp model.h
@@ -25,4 +25,5 @@ target_link_libraries(interview PUBLIC
install(TARGETS interview
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/pixelator/CMakeLists.txt b/examples/widgets/itemviews/pixelator/CMakeLists.txt
index e3e3388ba93..53f014d39aa 100644
--- a/examples/widgets/itemviews/pixelator/CMakeLists.txt
+++ b/examples/widgets/itemviews/pixelator/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(pixelator WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(pixelator
imagemodel.cpp imagemodel.h
images.qrc
main.cpp
@@ -33,4 +33,5 @@ endif()
install(TARGETS pixelator
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/puzzle/CMakeLists.txt b/examples/widgets/itemviews/puzzle/CMakeLists.txt
index 77abd09eaf5..e54d9dc770f 100644
--- a/examples/widgets/itemviews/puzzle/CMakeLists.txt
+++ b/examples/widgets/itemviews/puzzle/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(itemviews_puzzle WIN32 MACOSX_BUNDLE # special case: renamed puzzle
+add_qt_gui_executable(itemviews_puzzle # special case: renamed puzzle
main.cpp
mainwindow.cpp mainwindow.h
piecesmodel.cpp piecesmodel.h
@@ -27,4 +27,5 @@ target_link_libraries(itemviews_puzzle PUBLIC # special case: renamed puzzle
install(TARGETS itemviews_puzzle # special case: renamed puzzle
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
index 3573eca461e..a77e6543621 100644
--- a/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/simpledommodel/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Xml)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(simpledommodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(simpledommodel
domitem.cpp domitem.h
dommodel.cpp dommodel.h
main.cpp
@@ -28,4 +28,5 @@ target_link_libraries(simpledommodel PUBLIC
install(TARGETS simpledommodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
index 34c59d55ae9..dc3934abfa1 100644
--- a/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
+++ b/examples/widgets/itemviews/simpletreemodel/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(simpletreemodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(simpletreemodel
main.cpp
simpletreemodel.qrc
treeitem.cpp treeitem.h
@@ -26,4 +26,5 @@ target_link_libraries(simpletreemodel PUBLIC
install(TARGETS simpletreemodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
index dedf063b5f3..69030f63983 100644
--- a/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
+++ b/examples/widgets/itemviews/simplewidgetmapper/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(simplewidgetmapper WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(simplewidgetmapper
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(simplewidgetmapper PUBLIC
install(TARGETS simplewidgetmapper
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
index ed2ebc8ab30..333a86faf77 100644
--- a/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
+++ b/examples/widgets/itemviews/spinboxdelegate/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(spinboxdelegate WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(spinboxdelegate
delegate.cpp delegate.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(spinboxdelegate PUBLIC
install(TARGETS spinboxdelegate
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
index 7e3676e780b..5c91eea5e34 100644
--- a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
+++ b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(spreadsheet WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(spreadsheet
main.cpp
printview.cpp printview.h
spreadsheet.cpp spreadsheet.h spreadsheet.qrc
@@ -33,4 +33,5 @@ endif()
install(TARGETS spreadsheet
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/stardelegate/CMakeLists.txt b/examples/widgets/itemviews/stardelegate/CMakeLists.txt
index 0d3bc684f8e..39125cf76fb 100644
--- a/examples/widgets/itemviews/stardelegate/CMakeLists.txt
+++ b/examples/widgets/itemviews/stardelegate/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(stardelegate WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(stardelegate
main.cpp
stardelegate.cpp stardelegate.h
stareditor.cpp stareditor.h
@@ -26,4 +26,5 @@ target_link_libraries(stardelegate PUBLIC
install(TARGETS stardelegate
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/itemviews/storageview/CMakeLists.txt b/examples/widgets/itemviews/storageview/CMakeLists.txt
index b254a217bcf..56cb5a1e10f 100644
--- a/examples/widgets/itemviews/storageview/CMakeLists.txt
+++ b/examples/widgets/itemviews/storageview/CMakeLists.txt
@@ -15,7 +15,7 @@ find_package(Qt5 COMPONENTS Core)
find_package(Qt5 COMPONENTS Gui)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(storageview WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(storageview
main.cpp
storagemodel.cpp storagemodel.h
)
@@ -28,4 +28,5 @@ target_link_libraries(storageview PUBLIC
install(TARGETS storageview
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/layouts/basiclayouts/CMakeLists.txt b/examples/widgets/layouts/basiclayouts/CMakeLists.txt
index 927cbd7520e..374d66bdf4a 100644
--- a/examples/widgets/layouts/basiclayouts/CMakeLists.txt
+++ b/examples/widgets/layouts/basiclayouts/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(basiclayouts WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(basiclayouts
dialog.cpp dialog.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(basiclayouts PUBLIC
install(TARGETS basiclayouts
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/layouts/borderlayout/CMakeLists.txt b/examples/widgets/layouts/borderlayout/CMakeLists.txt
index 74e867f6f18..1cdaa5738fd 100644
--- a/examples/widgets/layouts/borderlayout/CMakeLists.txt
+++ b/examples/widgets/layouts/borderlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(borderlayout WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(borderlayout
borderlayout.cpp borderlayout.h
main.cpp
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(borderlayout PUBLIC
install(TARGETS borderlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
index fad7509823d..a10fc71f263 100644
--- a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
+++ b/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(dynamiclayouts WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dynamiclayouts
dialog.cpp dialog.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(dynamiclayouts PUBLIC
install(TARGETS dynamiclayouts
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/layouts/flowlayout/CMakeLists.txt b/examples/widgets/layouts/flowlayout/CMakeLists.txt
index b8257d9b4c5..56cc086a70d 100644
--- a/examples/widgets/layouts/flowlayout/CMakeLists.txt
+++ b/examples/widgets/layouts/flowlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(flowlayout WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(flowlayout
flowlayout.cpp flowlayout.h
main.cpp
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(flowlayout PUBLIC
install(TARGETS flowlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt b/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt
index 7a29a4cbc5b..0f1b48b5c5b 100644
--- a/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt
+++ b/examples/widgets/mac/qmaccocoaviewcontainer/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(qmaccocoaviewcontainer WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(qmaccocoaviewcontainer
main.mm
)
target_link_libraries(qmaccocoaviewcontainer PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(qmaccocoaviewcontainer PUBLIC
install(TARGETS qmaccocoaviewcontainer
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mac/qmacnativewidget/CMakeLists.txt b/examples/widgets/mac/qmacnativewidget/CMakeLists.txt
index b17b8454b3a..38b7d764b13 100644
--- a/examples/widgets/mac/qmacnativewidget/CMakeLists.txt
+++ b/examples/widgets/mac/qmacnativewidget/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(qmacnativewidget WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(qmacnativewidget
main.mm
)
target_link_libraries(qmacnativewidget PUBLIC
@@ -24,4 +24,5 @@ target_link_libraries(qmacnativewidget PUBLIC
install(TARGETS qmacnativewidget
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mainwindows/application/CMakeLists.txt b/examples/widgets/mainwindows/application/CMakeLists.txt
index 090cac61c70..67b00de33a8 100644
--- a/examples/widgets/mainwindows/application/CMakeLists.txt
+++ b/examples/widgets/mainwindows/application/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(application WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(application
application.qrc
main.cpp
mainwindow.cpp mainwindow.h
@@ -25,4 +25,5 @@ target_link_libraries(application PUBLIC
install(TARGETS application
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
index b3fe472db40..f07fbbcd9bf 100644
--- a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
+++ b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(dockwidgets WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dockwidgets
dockwidgets.qrc
main.cpp
mainwindow.cpp mainwindow.h
@@ -31,4 +31,5 @@ endif()
install(TARGETS dockwidgets
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
index 15824de79c6..63fe927e92b 100644
--- a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
+++ b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mainwindow WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mainwindow
colorswatch.cpp colorswatch.h
main.cpp
mainwindow.cpp mainwindow.h mainwindow.qrc
@@ -26,4 +26,5 @@ target_link_libraries(mainwindow PUBLIC
install(TARGETS mainwindow
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mainwindows/mdi/CMakeLists.txt b/examples/widgets/mainwindows/mdi/CMakeLists.txt
index fda2522b90e..806e96ed14d 100644
--- a/examples/widgets/mainwindows/mdi/CMakeLists.txt
+++ b/examples/widgets/mainwindows/mdi/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mdi WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mdi
main.cpp
mainwindow.cpp mainwindow.h
mdi.qrc
@@ -26,4 +26,5 @@ target_link_libraries(mdi PUBLIC
install(TARGETS mdi
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mainwindows/menus/CMakeLists.txt b/examples/widgets/mainwindows/menus/CMakeLists.txt
index 1e4d21248e5..92c6fd22846 100644
--- a/examples/widgets/mainwindows/menus/CMakeLists.txt
+++ b/examples/widgets/mainwindows/menus/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(menus WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(menus
main.cpp
mainwindow.cpp mainwindow.h
)
@@ -24,4 +24,5 @@ target_link_libraries(menus PUBLIC
install(TARGETS menus
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/mainwindows/sdi/CMakeLists.txt b/examples/widgets/mainwindows/sdi/CMakeLists.txt
index 89c929fc5e5..be09a0c2408 100644
--- a/examples/widgets/mainwindows/sdi/CMakeLists.txt
+++ b/examples/widgets/mainwindows/sdi/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(sdi WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(sdi
main.cpp
mainwindow.cpp mainwindow.h
sdi.qrc
@@ -25,4 +25,5 @@ target_link_libraries(sdi PUBLIC
install(TARGETS sdi
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/affine/CMakeLists.txt b/examples/widgets/painting/affine/CMakeLists.txt
index 4c8d408e9c5..950503d9a79 100644
--- a/examples/widgets/painting/affine/CMakeLists.txt
+++ b/examples/widgets/painting/affine/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(affine WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(affine
# special case: remove files from ../shared
affine.qrc
main.cpp
@@ -30,4 +30,5 @@ target_link_libraries(affine PUBLIC
install(TARGETS affine
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/basicdrawing/CMakeLists.txt b/examples/widgets/painting/basicdrawing/CMakeLists.txt
index 112334797ff..57a3dd346c3 100644
--- a/examples/widgets/painting/basicdrawing/CMakeLists.txt
+++ b/examples/widgets/painting/basicdrawing/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(basicdrawing WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(basicdrawing
basicdrawing.qrc
main.cpp
renderarea.cpp renderarea.h
@@ -26,4 +26,5 @@ target_link_libraries(basicdrawing PUBLIC
install(TARGETS basicdrawing
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/composition/CMakeLists.txt b/examples/widgets/painting/composition/CMakeLists.txt
index 930374270ed..48b139edc50 100644
--- a/examples/widgets/painting/composition/CMakeLists.txt
+++ b/examples/widgets/painting/composition/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(composition WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(composition
# special case: remove files from ../shared
composition.cpp composition.h composition.qrc
main.cpp
@@ -29,4 +29,5 @@ target_link_libraries(composition PUBLIC
install(TARGETS composition
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/concentriccircles/CMakeLists.txt b/examples/widgets/painting/concentriccircles/CMakeLists.txt
index 6005d5e8065..4c26eb1ab34 100644
--- a/examples/widgets/painting/concentriccircles/CMakeLists.txt
+++ b/examples/widgets/painting/concentriccircles/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(concentriccircles WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(concentriccircles
circlewidget.cpp circlewidget.h
main.cpp
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(concentriccircles PUBLIC
install(TARGETS concentriccircles
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/deform/CMakeLists.txt b/examples/widgets/painting/deform/CMakeLists.txt
index 56e1a2e9d2f..8e2fa52d19e 100644
--- a/examples/widgets/painting/deform/CMakeLists.txt
+++ b/examples/widgets/painting/deform/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(deform WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(deform
# special case: remove files from ../shared
deform.qrc
main.cpp
@@ -30,4 +30,5 @@ target_link_libraries(deform PUBLIC
install(TARGETS deform
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/fontsampler/CMakeLists.txt b/examples/widgets/painting/fontsampler/CMakeLists.txt
index e0be3158f2d..ee7ff6b7680 100644
--- a/examples/widgets/painting/fontsampler/CMakeLists.txt
+++ b/examples/widgets/painting/fontsampler/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(fontsampler WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fontsampler
main.cpp
mainwindow.cpp mainwindow.h
mainwindowbase.ui
@@ -25,4 +25,5 @@ target_link_libraries(fontsampler PUBLIC
install(TARGETS fontsampler
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/gradients/CMakeLists.txt b/examples/widgets/painting/gradients/CMakeLists.txt
index 69b7fac2947..218efc72a38 100644
--- a/examples/widgets/painting/gradients/CMakeLists.txt
+++ b/examples/widgets/painting/gradients/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(gradients WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(gradients
# special case: remove files from ../shared
gradients.cpp gradients.h gradients.qrc
main.cpp
@@ -29,4 +29,5 @@ target_link_libraries(gradients PUBLIC
install(TARGETS gradients
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/imagecomposition/CMakeLists.txt b/examples/widgets/painting/imagecomposition/CMakeLists.txt
index 1fcedbcc9fb..4b3e9c78ea5 100644
--- a/examples/widgets/painting/imagecomposition/CMakeLists.txt
+++ b/examples/widgets/painting/imagecomposition/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(imagecomposition WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(imagecomposition
imagecomposer.cpp imagecomposer.h
imagecomposition.qrc
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(imagecomposition PUBLIC
install(TARGETS imagecomposition
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/painterpaths/CMakeLists.txt b/examples/widgets/painting/painterpaths/CMakeLists.txt
index 56007a3e548..14fd70f3d34 100644
--- a/examples/widgets/painting/painterpaths/CMakeLists.txt
+++ b/examples/widgets/painting/painterpaths/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(painterpaths WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(painterpaths
main.cpp
renderarea.cpp renderarea.h
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(painterpaths PUBLIC
install(TARGETS painterpaths
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/pathstroke/CMakeLists.txt b/examples/widgets/painting/pathstroke/CMakeLists.txt
index fac73d2a534..f12ccb0b545 100644
--- a/examples/widgets/painting/pathstroke/CMakeLists.txt
+++ b/examples/widgets/painting/pathstroke/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(pathstroke WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(pathstroke
../shared/arthurstyle.cpp ../shared/arthurstyle.h
../shared/arthurwidgets.cpp ../shared/arthurwidgets.h
../shared/hoverpoints.cpp ../shared/hoverpoints.h
@@ -31,4 +31,5 @@ target_link_libraries(pathstroke PUBLIC
install(TARGETS pathstroke
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/painting/transformations/CMakeLists.txt b/examples/widgets/painting/transformations/CMakeLists.txt
index 3218073a961..baa527d8573 100644
--- a/examples/widgets/painting/transformations/CMakeLists.txt
+++ b/examples/widgets/painting/transformations/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(transformations WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(transformations
main.cpp
renderarea.cpp renderarea.h
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(transformations PUBLIC
install(TARGETS transformations
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/richtext/calendar/CMakeLists.txt b/examples/widgets/richtext/calendar/CMakeLists.txt
index 803deb9243e..f0ce5defc9c 100644
--- a/examples/widgets/richtext/calendar/CMakeLists.txt
+++ b/examples/widgets/richtext/calendar/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(calendar WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(calendar
main.cpp
mainwindow.cpp mainwindow.h
)
@@ -24,4 +24,5 @@ target_link_libraries(calendar PUBLIC
install(TARGETS calendar
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/richtext/orderform/CMakeLists.txt b/examples/widgets/richtext/orderform/CMakeLists.txt
index 4fc3c579192..12406d183a5 100644
--- a/examples/widgets/richtext/orderform/CMakeLists.txt
+++ b/examples/widgets/richtext/orderform/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport)
-add_qt_gui_executable(orderform WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(orderform
detailsdialog.cpp detailsdialog.h
main.cpp
mainwindow.cpp mainwindow.h
@@ -29,4 +29,5 @@ endif()
install(TARGETS orderform
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
index d70211e24cb..96d824e559c 100644
--- a/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
+++ b/examples/widgets/richtext/syntaxhighlighter/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(syntaxhighlighter WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(syntaxhighlighter
highlighter.cpp highlighter.h
main.cpp
mainwindow.cpp mainwindow.h
@@ -25,4 +25,5 @@ target_link_libraries(syntaxhighlighter PUBLIC
install(TARGETS syntaxhighlighter
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/richtext/textedit/CMakeLists.txt b/examples/widgets/richtext/textedit/CMakeLists.txt
index 602baa84f27..12b428c6c49 100644
--- a/examples/widgets/richtext/textedit/CMakeLists.txt
+++ b/examples/widgets/richtext/textedit/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(textedit WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(textedit
main.cpp
textedit.cpp textedit.h textedit.qrc
)
@@ -30,4 +30,5 @@ endif()
install(TARGETS textedit
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/scroller/graphicsview/CMakeLists.txt b/examples/widgets/scroller/graphicsview/CMakeLists.txt
index 53ce4ff2477..2f4ab320970 100644
--- a/examples/widgets/scroller/graphicsview/CMakeLists.txt
+++ b/examples/widgets/scroller/graphicsview/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(graphicsview WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(graphicsview
main.cpp
)
target_link_libraries(graphicsview PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(graphicsview PUBLIC
install(TARGETS graphicsview
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/statemachine/eventtransitions/CMakeLists.txt b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
index 21372f8856a..902bc009d07 100644
--- a/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
+++ b/examples/widgets/statemachine/eventtransitions/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(eventtransitions WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(eventtransitions
main.cpp
)
target_link_libraries(eventtransitions PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(eventtransitions PUBLIC
install(TARGETS eventtransitions
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/statemachine/factorial/CMakeLists.txt b/examples/widgets/statemachine/factorial/CMakeLists.txt
index e3832257058..e7eba926c4d 100644
--- a/examples/widgets/statemachine/factorial/CMakeLists.txt
+++ b/examples/widgets/statemachine/factorial/CMakeLists.txt
@@ -23,4 +23,5 @@ target_link_libraries(factorial PUBLIC
install(TARGETS factorial
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/statemachine/pingpong/CMakeLists.txt b/examples/widgets/statemachine/pingpong/CMakeLists.txt
index e3745a280da..7f255dd4d1c 100644
--- a/examples/widgets/statemachine/pingpong/CMakeLists.txt
+++ b/examples/widgets/statemachine/pingpong/CMakeLists.txt
@@ -23,4 +23,5 @@ target_link_libraries(pingpong PUBLIC
install(TARGETS pingpong
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/statemachine/rogue/CMakeLists.txt b/examples/widgets/statemachine/rogue/CMakeLists.txt
index 1ae6b511da8..25ca4f45f1f 100644
--- a/examples/widgets/statemachine/rogue/CMakeLists.txt
+++ b/examples/widgets/statemachine/rogue/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(rogue WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(rogue
main.cpp
movementtransition.h
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(rogue PUBLIC
install(TARGETS rogue
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/statemachine/trafficlight/CMakeLists.txt b/examples/widgets/statemachine/trafficlight/CMakeLists.txt
index 0122fa72cd5..89f05f22ff7 100644
--- a/examples/widgets/statemachine/trafficlight/CMakeLists.txt
+++ b/examples/widgets/statemachine/trafficlight/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(trafficlight WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(trafficlight
main.cpp
)
target_link_libraries(trafficlight PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(trafficlight PUBLIC
install(TARGETS trafficlight
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/statemachine/twowaybutton/CMakeLists.txt b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
index 6c68cdd2fb5..9c5bf3cb45a 100644
--- a/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
+++ b/examples/widgets/statemachine/twowaybutton/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(twowaybutton WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(twowaybutton
main.cpp
)
target_link_libraries(twowaybutton PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(twowaybutton PUBLIC
install(TARGETS twowaybutton
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/codecs/CMakeLists.txt b/examples/widgets/tools/codecs/CMakeLists.txt
index 0bb5f379380..5a1f4297880 100644
--- a/examples/widgets/tools/codecs/CMakeLists.txt
+++ b/examples/widgets/tools/codecs/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(codecs WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(codecs
codecs.qrc
encodingdialog.cpp encodingdialog.h
main.cpp
@@ -27,4 +27,5 @@ target_link_libraries(codecs PUBLIC
install(TARGETS codecs
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/completer/CMakeLists.txt b/examples/widgets/tools/completer/CMakeLists.txt
index 8e86cc6b897..855fd54930e 100644
--- a/examples/widgets/tools/completer/CMakeLists.txt
+++ b/examples/widgets/tools/completer/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(completer WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(completer
completer.qrc
fsmodel.cpp fsmodel.h
main.cpp
@@ -26,4 +26,5 @@ target_link_libraries(completer PUBLIC
install(TARGETS completer
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/customcompleter/CMakeLists.txt b/examples/widgets/tools/customcompleter/CMakeLists.txt
index 7ac00d7345a..22481eab5c9 100644
--- a/examples/widgets/tools/customcompleter/CMakeLists.txt
+++ b/examples/widgets/tools/customcompleter/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(customcompleter WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(customcompleter
customcompleter.qrc
main.cpp
mainwindow.cpp mainwindow.h
@@ -26,4 +26,5 @@ target_link_libraries(customcompleter PUBLIC
install(TARGETS customcompleter
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
index 20615d1e3bc..bb5ec4c96a4 100644
--- a/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
+++ b/examples/widgets/tools/echoplugin/echowindow/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(echopluginwindow WIN32 MACOSX_BUNDLE # special case: renamed target
+add_qt_gui_executable(echopluginwindow # special case: renamed target
echointerface.h
echowindow.cpp echowindow.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(echopluginwindow PUBLIC # special case: renamed target
install(TARGETS echopluginwindow # special case: renamed target
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/i18n/CMakeLists.txt b/examples/widgets/tools/i18n/CMakeLists.txt
index a0347d8453f..45d51351ba1 100644
--- a/examples/widgets/tools/i18n/CMakeLists.txt
+++ b/examples/widgets/tools/i18n/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(i18n WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(i18n
i18n.qrc
languagechooser.cpp languagechooser.h
main.cpp
@@ -26,4 +26,5 @@ target_link_libraries(i18n PUBLIC
install(TARGETS i18n
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
index a7c642a1beb..54c6b153104 100644
--- a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
+++ b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(plugandpaint WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(plugandpaint
interfaces.h
main.cpp
mainwindow.cpp mainwindow.h
@@ -30,4 +30,5 @@ target_link_libraries(plugandpaint PUBLIC pnp_basictools) # special case
install(TARGETS plugandpaint
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/regexp/CMakeLists.txt b/examples/widgets/tools/regexp/CMakeLists.txt
index 0b64cf06f8e..8e3eb4abe8f 100644
--- a/examples/widgets/tools/regexp/CMakeLists.txt
+++ b/examples/widgets/tools/regexp/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(regexp WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(regexp
main.cpp
regexpdialog.cpp regexpdialog.h
)
@@ -24,4 +24,5 @@ target_link_libraries(regexp PUBLIC
install(TARGETS regexp
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/regularexpression/CMakeLists.txt b/examples/widgets/tools/regularexpression/CMakeLists.txt
index a9ce374ce22..dcd69756b4f 100644
--- a/examples/widgets/tools/regularexpression/CMakeLists.txt
+++ b/examples/widgets/tools/regularexpression/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(regularexpression WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(regularexpression
main.cpp
regularexpression.qrc
regularexpressiondialog.cpp regularexpressiondialog.h
@@ -25,4 +25,5 @@ target_link_libraries(regularexpression PUBLIC
install(TARGETS regularexpression
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/settingseditor/CMakeLists.txt b/examples/widgets/tools/settingseditor/CMakeLists.txt
index 49a014e3590..77177beaddc 100644
--- a/examples/widgets/tools/settingseditor/CMakeLists.txt
+++ b/examples/widgets/tools/settingseditor/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(settingseditor WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(settingseditor
locationdialog.cpp locationdialog.h
main.cpp
mainwindow.cpp mainwindow.h
@@ -27,4 +27,5 @@ target_link_libraries(settingseditor PUBLIC
install(TARGETS settingseditor
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
index 6e470824711..f23d53c3aa4 100644
--- a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
+++ b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(styleplugin WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(styleplugin
main.cpp
stylewindow.cpp stylewindow.h
)
@@ -24,4 +24,5 @@ target_link_libraries(styleplugin PUBLIC
install(TARGETS styleplugin
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
index 9fa16e06dd0..d8f3dff9298 100644
--- a/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
+++ b/examples/widgets/tools/treemodelcompleter/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(treemodelcompleter WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(treemodelcompleter
main.cpp
mainwindow.cpp mainwindow.h
treemodelcompleter.cpp treemodelcompleter.h treemodelcompleter.qrc
@@ -25,4 +25,5 @@ target_link_libraries(treemodelcompleter PUBLIC
install(TARGETS treemodelcompleter
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/undo/CMakeLists.txt b/examples/widgets/tools/undo/CMakeLists.txt
index bc4a8762113..c8188b8f0f7 100644
--- a/examples/widgets/tools/undo/CMakeLists.txt
+++ b/examples/widgets/tools/undo/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(undo WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(undo
commands.cpp commands.h
document.cpp document.h
main.cpp
@@ -27,4 +27,5 @@ target_link_libraries(undo PUBLIC
install(TARGETS undo
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tools/undoframework/CMakeLists.txt b/examples/widgets/tools/undoframework/CMakeLists.txt
index 064cb651507..27672edd825 100644
--- a/examples/widgets/tools/undoframework/CMakeLists.txt
+++ b/examples/widgets/tools/undoframework/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(undoframework WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(undoframework
commands.cpp commands.h
diagramitem.cpp diagramitem.h
diagramscene.cpp diagramscene.h
@@ -28,4 +28,5 @@ target_link_libraries(undoframework PUBLIC
install(TARGETS undoframework
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/touch/dials/CMakeLists.txt b/examples/widgets/touch/dials/CMakeLists.txt
index fa31852b3df..2bfe6b78cf5 100644
--- a/examples/widgets/touch/dials/CMakeLists.txt
+++ b/examples/widgets/touch/dials/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(dials WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dials
dials.ui
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(dials PUBLIC
install(TARGETS dials
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/touch/fingerpaint/CMakeLists.txt b/examples/widgets/touch/fingerpaint/CMakeLists.txt
index 606e6bbc64f..4ba2710e671 100644
--- a/examples/widgets/touch/fingerpaint/CMakeLists.txt
+++ b/examples/widgets/touch/fingerpaint/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(fingerpaint WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(fingerpaint
main.cpp
mainwindow.cpp mainwindow.h
scribblearea.cpp scribblearea.h
@@ -31,4 +31,5 @@ endif()
install(TARGETS fingerpaint
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/touch/knobs/CMakeLists.txt b/examples/widgets/touch/knobs/CMakeLists.txt
index c23a11f0247..55f9820f68b 100644
--- a/examples/widgets/touch/knobs/CMakeLists.txt
+++ b/examples/widgets/touch/knobs/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(knobs WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(knobs
knob.cpp knob.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(knobs PUBLIC
install(TARGETS knobs
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/touch/pinchzoom/CMakeLists.txt b/examples/widgets/touch/pinchzoom/CMakeLists.txt
index 44951db7277..f0cece0acd6 100644
--- a/examples/widgets/touch/pinchzoom/CMakeLists.txt
+++ b/examples/widgets/touch/pinchzoom/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(pinchzoom WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(pinchzoom
graphicsview.cpp graphicsview.h
main.cpp
mice.qrc
@@ -26,4 +26,5 @@ target_link_libraries(pinchzoom PUBLIC
install(TARGETS pinchzoom
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
index 6c333420f49..07ff78f7d36 100644
--- a/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part1/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part1 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part1
addressbook.cpp addressbook.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(part1 PUBLIC
install(TARGETS part1
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
index 2c5d438bc5b..28a3a6a472f 100644
--- a/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part2/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part2 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part2
addressbook.cpp addressbook.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(part2 PUBLIC
install(TARGETS part2
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
index 5be04b1e2f3..d8d1147306e 100644
--- a/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part3/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part3 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part3
addressbook.cpp addressbook.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(part3 PUBLIC
install(TARGETS part3
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
index 309e8eea668..9818a511818 100644
--- a/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part4/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part4 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part4
addressbook.cpp addressbook.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(part4 PUBLIC
install(TARGETS part4
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
index 9d73fd0e96e..6ddf50aac72 100644
--- a/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part5/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part5 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part5
addressbook.cpp addressbook.h
finddialog.cpp finddialog.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(part5 PUBLIC
install(TARGETS part5
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
index 015a4cb244e..75b75924848 100644
--- a/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part6/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part6 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part6
addressbook.cpp addressbook.h
finddialog.cpp finddialog.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(part6 PUBLIC
install(TARGETS part6
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
index acb3a2903ba..5dcb53e470a 100644
--- a/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
+++ b/examples/widgets/tutorials/addressbook/part7/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part7 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part7
addressbook.cpp addressbook.h
finddialog.cpp finddialog.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(part7 PUBLIC
install(TARGETS part7
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
index c148f20a035..739d1384d97 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part1/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part1 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part1
main.cpp
)
target_link_libraries(part1 PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(part1 PUBLIC
install(TARGETS part1
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
index ddbef50ca23..db6bfc8beaa 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part2/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part2 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part2
main.cpp
)
target_link_libraries(part2 PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(part2 PUBLIC
install(TARGETS part2
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
index 66cd8827cfa..f1cc350d1e8 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part3 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part3
main.cpp
)
target_link_libraries(part3 PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(part3 PUBLIC
install(TARGETS part3
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
index 0c7b9f62f97..bfd358f3819 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part4/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part4 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part4
main.cpp
)
target_link_libraries(part4 PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(part4 PUBLIC
install(TARGETS part4
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
index 4fc0df77b78..006b1a6ea5a 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part5/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(part5 WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(part5
main.cpp
)
target_link_libraries(part5 PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(part5 PUBLIC
install(TARGETS part5
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
index ee859409e51..001f6d80702 100644
--- a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_readonly WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_readonly
main.cpp
mymodel.cpp mymodel.h
)
@@ -24,4 +24,5 @@ target_link_libraries(mv_readonly PUBLIC
install(TARGETS mv_readonly
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
index 75c5f431c1e..6b9d5732cf6 100644
--- a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_formatting WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_formatting
main.cpp
mymodel.cpp mymodel.h
)
@@ -24,4 +24,5 @@ target_link_libraries(mv_formatting PUBLIC
install(TARGETS mv_formatting
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
index 60d240f1704..52c4ddfc38c 100644
--- a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_changingmodel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_changingmodel
main.cpp
mymodel.cpp mymodel.h
)
@@ -24,4 +24,5 @@ target_link_libraries(mv_changingmodel PUBLIC
install(TARGETS mv_changingmodel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
index b719caf8ecb..b248a47f57a 100644
--- a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_headers WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_headers
main.cpp
mymodel.cpp mymodel.h
)
@@ -24,4 +24,5 @@ target_link_libraries(mv_headers PUBLIC
install(TARGETS mv_headers
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
index 67c34521f49..d40e8674d8d 100644
--- a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_edit WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_edit
main.cpp
mainwindow.cpp mainwindow.h
mymodel.cpp mymodel.h
@@ -25,4 +25,5 @@ target_link_libraries(mv_edit PUBLIC
install(TARGETS mv_edit
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
index 2feb364569d..592f7bb5281 100644
--- a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_tree WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_tree
main.cpp
mainwindow.cpp mainwindow.h
)
@@ -24,4 +24,5 @@ target_link_libraries(mv_tree PUBLIC
install(TARGETS mv_tree
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
index a974313bd75..65b58dfa74c 100644
--- a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
+++ b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mv_selections WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mv_selections
main.cpp
mainwindow.cpp mainwindow.h
)
@@ -24,4 +24,5 @@ target_link_libraries(mv_selections PUBLIC
install(TARGETS mv_selections
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/notepad/CMakeLists.txt b/examples/widgets/tutorials/notepad/CMakeLists.txt
index 44606d522c8..2d1b13e469c 100644
--- a/examples/widgets/tutorials/notepad/CMakeLists.txt
+++ b/examples/widgets/tutorials/notepad/CMakeLists.txt
@@ -14,7 +14,7 @@ set(CMAKE_AUTOUIC ON)
set(INSTALL_EXAMPLEDIR "examples")
-add_qt_gui_executable(notepad WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(notepad
main.cpp
notepad.cpp notepad.h notepad.qrc notepad.ui
)
@@ -32,4 +32,5 @@ endif()
install(TARGETS notepad
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
index b5fb51c77df..f6192757b2a 100644
--- a/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/childwidget/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(childwidget WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(childwidget
main.cpp
)
target_link_libraries(childwidget PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(childwidget PUBLIC
install(TARGETS childwidget
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
index e963dd77f31..59f0053c1e3 100644
--- a/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/nestedlayouts/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(nestedlayouts WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(nestedlayouts
main.cpp
)
target_link_libraries(nestedlayouts PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(nestedlayouts PUBLIC
install(TARGETS nestedlayouts
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
index b607403c55c..033746d0d77 100644
--- a/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/toplevel/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(toplevel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(toplevel
main.cpp
)
target_link_libraries(toplevel PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(toplevel PUBLIC
install(TARGETS toplevel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
index a9db86bccf5..3f3335d9e70 100644
--- a/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
+++ b/examples/widgets/tutorials/widgets/windowlayout/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(windowlayout WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(windowlayout
main.cpp
)
target_link_libraries(windowlayout PUBLIC
@@ -23,4 +23,5 @@ target_link_libraries(windowlayout PUBLIC
install(TARGETS windowlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/analogclock/CMakeLists.txt b/examples/widgets/widgets/analogclock/CMakeLists.txt
index 32ed38e46a8..7debc7114b8 100644
--- a/examples/widgets/widgets/analogclock/CMakeLists.txt
+++ b/examples/widgets/widgets/analogclock/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(analogclock WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(analogclock
analogclock.cpp analogclock.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(analogclock PUBLIC
install(TARGETS analogclock
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/calculator/CMakeLists.txt b/examples/widgets/widgets/calculator/CMakeLists.txt
index cd8a8372817..9b689b58c0e 100644
--- a/examples/widgets/widgets/calculator/CMakeLists.txt
+++ b/examples/widgets/widgets/calculator/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(calculator WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(calculator
button.cpp button.h
calculator.cpp calculator.h
main.cpp
@@ -25,4 +25,5 @@ target_link_libraries(calculator PUBLIC
install(TARGETS calculator
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/calendarwidget/CMakeLists.txt b/examples/widgets/widgets/calendarwidget/CMakeLists.txt
index 4c09d47a170..4d6f7b74782 100644
--- a/examples/widgets/widgets/calendarwidget/CMakeLists.txt
+++ b/examples/widgets/widgets/calendarwidget/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(calendarwidget WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(calendarwidget
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(calendarwidget PUBLIC
install(TARGETS calendarwidget
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/charactermap/CMakeLists.txt b/examples/widgets/widgets/charactermap/CMakeLists.txt
index fdd5d75b26e..51bb16ba5eb 100644
--- a/examples/widgets/widgets/charactermap/CMakeLists.txt
+++ b/examples/widgets/widgets/charactermap/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(charactermap WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(charactermap
characterwidget.cpp characterwidget.h
main.cpp
mainwindow.cpp mainwindow.h
@@ -25,4 +25,5 @@ target_link_libraries(charactermap PUBLIC
install(TARGETS charactermap
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/codeeditor/CMakeLists.txt b/examples/widgets/widgets/codeeditor/CMakeLists.txt
index 8e3e3dbdc1d..8d60821cf81 100644
--- a/examples/widgets/widgets/codeeditor/CMakeLists.txt
+++ b/examples/widgets/widgets/codeeditor/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(codeeditor WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(codeeditor
codeeditor.cpp codeeditor.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(codeeditor PUBLIC
install(TARGETS codeeditor
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/digitalclock/CMakeLists.txt b/examples/widgets/widgets/digitalclock/CMakeLists.txt
index 978d208b954..463209b2dbc 100644
--- a/examples/widgets/widgets/digitalclock/CMakeLists.txt
+++ b/examples/widgets/widgets/digitalclock/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(digitalclock WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(digitalclock
digitalclock.cpp digitalclock.h
main.cpp
)
@@ -24,4 +24,5 @@ target_link_libraries(digitalclock PUBLIC
install(TARGETS digitalclock
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/elidedlabel/CMakeLists.txt b/examples/widgets/widgets/elidedlabel/CMakeLists.txt
index e21f5a1e15e..fece6e4db99 100644
--- a/examples/widgets/widgets/elidedlabel/CMakeLists.txt
+++ b/examples/widgets/widgets/elidedlabel/CMakeLists.txt
@@ -15,7 +15,7 @@ find_package(Qt5 COMPONENTS Core)
find_package(Qt5 COMPONENTS Gui)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(elidedlabel WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(elidedlabel
elidedlabel.cpp elidedlabel.h
main.cpp
testwidget.cpp testwidget.h
@@ -29,4 +29,5 @@ target_link_libraries(elidedlabel PUBLIC
install(TARGETS elidedlabel
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/groupbox/CMakeLists.txt b/examples/widgets/widgets/groupbox/CMakeLists.txt
index f6d2769a65b..c5b3faaa402 100644
--- a/examples/widgets/widgets/groupbox/CMakeLists.txt
+++ b/examples/widgets/widgets/groupbox/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(groupbox WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(groupbox
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(groupbox PUBLIC
install(TARGETS groupbox
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/icons/CMakeLists.txt b/examples/widgets/widgets/icons/CMakeLists.txt
index 0306ff69204..1b489d06b28 100644
--- a/examples/widgets/widgets/icons/CMakeLists.txt
+++ b/examples/widgets/widgets/icons/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(icons WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(icons
iconpreviewarea.cpp iconpreviewarea.h
iconsizespinbox.cpp iconsizespinbox.h
imagedelegate.cpp imagedelegate.h
@@ -29,4 +29,5 @@ target_link_libraries(icons PUBLIC
install(TARGETS icons
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/imageviewer/CMakeLists.txt b/examples/widgets/widgets/imageviewer/CMakeLists.txt
index 3bdcc27d9e3..6f06a01b499 100644
--- a/examples/widgets/widgets/imageviewer/CMakeLists.txt
+++ b/examples/widgets/widgets/imageviewer/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(imageviewer WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(imageviewer
imageviewer.cpp imageviewer.h
main.cpp
)
@@ -30,4 +30,5 @@ endif()
install(TARGETS imageviewer
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/lineedits/CMakeLists.txt b/examples/widgets/widgets/lineedits/CMakeLists.txt
index 0d39f973152..035b0c5fd55 100644
--- a/examples/widgets/widgets/lineedits/CMakeLists.txt
+++ b/examples/widgets/widgets/lineedits/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(lineedits WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(lineedits
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(lineedits PUBLIC
install(TARGETS lineedits
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/mousebuttons/CMakeLists.txt b/examples/widgets/widgets/mousebuttons/CMakeLists.txt
index a2bf41193be..acba290da07 100644
--- a/examples/widgets/widgets/mousebuttons/CMakeLists.txt
+++ b/examples/widgets/widgets/mousebuttons/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Core)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(mousebuttons WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(mousebuttons
buttontester.cpp buttontester.h
main.cpp
)
@@ -26,4 +26,5 @@ target_link_libraries(mousebuttons PUBLIC
install(TARGETS mousebuttons
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/movie/CMakeLists.txt b/examples/widgets/widgets/movie/CMakeLists.txt
index 46c84740026..ea82d7ee5a7 100644
--- a/examples/widgets/widgets/movie/CMakeLists.txt
+++ b/examples/widgets/widgets/movie/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(movie WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(movie
main.cpp
movieplayer.cpp movieplayer.h
)
@@ -24,4 +24,5 @@ target_link_libraries(movie PUBLIC
install(TARGETS movie
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/scribble/CMakeLists.txt b/examples/widgets/widgets/scribble/CMakeLists.txt
index 9fb19a64429..3363c47ba57 100644
--- a/examples/widgets/widgets/scribble/CMakeLists.txt
+++ b/examples/widgets/widgets/scribble/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
find_package(Qt5 COMPONENTS PrintSupport) # special case
-add_qt_gui_executable(scribble WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(scribble
main.cpp
mainwindow.cpp mainwindow.h
scribblearea.cpp scribblearea.h
@@ -31,4 +31,5 @@ endif()
install(TARGETS scribble
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/shapedclock/CMakeLists.txt b/examples/widgets/widgets/shapedclock/CMakeLists.txt
index 60e2bd208e0..c01243d09ee 100644
--- a/examples/widgets/widgets/shapedclock/CMakeLists.txt
+++ b/examples/widgets/widgets/shapedclock/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(shapedclock WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(shapedclock
main.cpp
shapedclock.cpp shapedclock.h
)
@@ -24,4 +24,5 @@ target_link_libraries(shapedclock PUBLIC
install(TARGETS shapedclock
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/sliders/CMakeLists.txt b/examples/widgets/widgets/sliders/CMakeLists.txt
index db365140074..11402b467e1 100644
--- a/examples/widgets/widgets/sliders/CMakeLists.txt
+++ b/examples/widgets/widgets/sliders/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(sliders WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(sliders
main.cpp
slidersgroup.cpp slidersgroup.h
window.cpp window.h
@@ -25,4 +25,5 @@ target_link_libraries(sliders PUBLIC
install(TARGETS sliders
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/spinboxes/CMakeLists.txt b/examples/widgets/widgets/spinboxes/CMakeLists.txt
index 6bb7618f6b1..ae9f577b747 100644
--- a/examples/widgets/widgets/spinboxes/CMakeLists.txt
+++ b/examples/widgets/widgets/spinboxes/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(spinboxes WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(spinboxes
main.cpp
window.cpp window.h
)
@@ -24,4 +24,5 @@ target_link_libraries(spinboxes PUBLIC
install(TARGETS spinboxes
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/styles/CMakeLists.txt b/examples/widgets/widgets/styles/CMakeLists.txt
index fd639e17ed3..f9d83dc3b26 100644
--- a/examples/widgets/widgets/styles/CMakeLists.txt
+++ b/examples/widgets/widgets/styles/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(styles WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(styles
main.cpp
norwegianwoodstyle.cpp norwegianwoodstyle.h
styles.qrc
@@ -26,4 +26,5 @@ target_link_libraries(styles PUBLIC
install(TARGETS styles
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/stylesheet/CMakeLists.txt b/examples/widgets/widgets/stylesheet/CMakeLists.txt
index 0a38fdd3e5f..574acc88a55 100644
--- a/examples/widgets/widgets/stylesheet/CMakeLists.txt
+++ b/examples/widgets/widgets/stylesheet/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(stylesheet WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(stylesheet
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
stylesheet.qrc
@@ -26,4 +26,5 @@ target_link_libraries(stylesheet PUBLIC
install(TARGETS stylesheet
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/tablet/CMakeLists.txt b/examples/widgets/widgets/tablet/CMakeLists.txt
index ee9e2b7e269..568d9c17d7d 100644
--- a/examples/widgets/widgets/tablet/CMakeLists.txt
+++ b/examples/widgets/widgets/tablet/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(qttablet WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(qttablet
images.qrc
main.cpp
mainwindow.cpp mainwindow.h
@@ -27,4 +27,5 @@ target_link_libraries(qttablet PUBLIC
install(TARGETS qttablet
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/tetrix/CMakeLists.txt b/examples/widgets/widgets/tetrix/CMakeLists.txt
index 205a0d27445..8da13d1f237 100644
--- a/examples/widgets/widgets/tetrix/CMakeLists.txt
+++ b/examples/widgets/widgets/tetrix/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(tetrix WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tetrix
main.cpp
tetrixboard.cpp tetrixboard.h
tetrixpiece.cpp tetrixpiece.h
@@ -26,4 +26,5 @@ target_link_libraries(tetrix PUBLIC
install(TARGETS tetrix
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/tooltips/CMakeLists.txt b/examples/widgets/widgets/tooltips/CMakeLists.txt
index 038a8881f2c..085da5b7e18 100644
--- a/examples/widgets/widgets/tooltips/CMakeLists.txt
+++ b/examples/widgets/widgets/tooltips/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(tooltips WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(tooltips
main.cpp
shapeitem.cpp shapeitem.h
sortingbox.cpp sortingbox.h
@@ -26,4 +26,5 @@ target_link_libraries(tooltips PUBLIC
install(TARGETS tooltips
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/validators/CMakeLists.txt b/examples/widgets/widgets/validators/CMakeLists.txt
index 5ed36901581..be9fdb1cd2b 100644
--- a/examples/widgets/widgets/validators/CMakeLists.txt
+++ b/examples/widgets/widgets/validators/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(validators WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(validators
ledwidget.cpp ledwidget.h
localeselector.cpp localeselector.h
main.cpp
@@ -27,4 +27,5 @@ target_link_libraries(validators PUBLIC
install(TARGETS validators
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/wiggly/CMakeLists.txt b/examples/widgets/widgets/wiggly/CMakeLists.txt
index da0e64a8644..0e721370ba9 100644
--- a/examples/widgets/widgets/wiggly/CMakeLists.txt
+++ b/examples/widgets/widgets/wiggly/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(wiggly WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(wiggly
dialog.cpp dialog.h
main.cpp
wigglywidget.cpp wigglywidget.h
@@ -25,4 +25,5 @@ target_link_libraries(wiggly PUBLIC
install(TARGETS wiggly
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/widgets/windowflags/CMakeLists.txt b/examples/widgets/widgets/windowflags/CMakeLists.txt
index f7da42114d1..4b6d325db51 100644
--- a/examples/widgets/widgets/windowflags/CMakeLists.txt
+++ b/examples/widgets/widgets/windowflags/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(windowflags WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(windowflags
controllerwindow.cpp controllerwindow.h
main.cpp
previewwindow.cpp previewwindow.h
@@ -25,4 +25,5 @@ target_link_libraries(windowflags PUBLIC
install(TARGETS windowflags
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/widgets/windowcontainer/CMakeLists.txt b/examples/widgets/windowcontainer/CMakeLists.txt
index 80c8897c9b3..16269348305 100644
--- a/examples/widgets/windowcontainer/CMakeLists.txt
+++ b/examples/widgets/windowcontainer/CMakeLists.txt
@@ -13,7 +13,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(windowcontainer WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(windowcontainer
../../gui/openglwindow/openglwindow.cpp ../../gui/openglwindow/openglwindow.h
windowcontainer.cpp
)
@@ -27,4 +27,5 @@ target_link_libraries(windowcontainer PUBLIC
install(TARGETS windowcontainer
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/xml/dombookmarks/CMakeLists.txt b/examples/xml/dombookmarks/CMakeLists.txt
index 95e58c6025c..f570fe49c50 100644
--- a/examples/xml/dombookmarks/CMakeLists.txt
+++ b/examples/xml/dombookmarks/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Xml)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(dombookmarks WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(dombookmarks
main.cpp
mainwindow.cpp mainwindow.h
xbeltree.cpp xbeltree.h
@@ -26,4 +26,5 @@ target_link_libraries(dombookmarks PUBLIC
install(TARGETS dombookmarks
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/xml/htmlinfo/CMakeLists.txt b/examples/xml/htmlinfo/CMakeLists.txt
index 00ecced0c56..737d4685e5e 100644
--- a/examples/xml/htmlinfo/CMakeLists.txt
+++ b/examples/xml/htmlinfo/CMakeLists.txt
@@ -22,4 +22,5 @@ target_link_libraries(htmlinfo PUBLIC
install(TARGETS htmlinfo
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/xml/rsslisting/CMakeLists.txt b/examples/xml/rsslisting/CMakeLists.txt
index 09879771ba5..b013404de3f 100644
--- a/examples/xml/rsslisting/CMakeLists.txt
+++ b/examples/xml/rsslisting/CMakeLists.txt
@@ -15,7 +15,7 @@ find_package(Qt5 COMPONENTS Network)
find_package(Qt5 COMPONENTS Xml)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(rsslisting WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(rsslisting
main.cpp
rsslisting.cpp rsslisting.h
)
@@ -27,4 +27,5 @@ target_link_libraries(rsslisting PUBLIC
install(TARGETS rsslisting
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/xml/saxbookmarks/CMakeLists.txt b/examples/xml/saxbookmarks/CMakeLists.txt
index d5d8bba53a9..79ce88f182b 100644
--- a/examples/xml/saxbookmarks/CMakeLists.txt
+++ b/examples/xml/saxbookmarks/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Xml)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(saxbookmarks WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(saxbookmarks
main.cpp
mainwindow.cpp mainwindow.h
xbelgenerator.cpp xbelgenerator.h
@@ -27,4 +27,5 @@ target_link_libraries(saxbookmarks PUBLIC
install(TARGETS saxbookmarks
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/xml/streambookmarks/CMakeLists.txt b/examples/xml/streambookmarks/CMakeLists.txt
index 3393c47a665..6a93d8b18cb 100644
--- a/examples/xml/streambookmarks/CMakeLists.txt
+++ b/examples/xml/streambookmarks/CMakeLists.txt
@@ -14,7 +14,7 @@ set(INSTALL_EXAMPLEDIR "examples")
find_package(Qt5 COMPONENTS Xml)
find_package(Qt5 COMPONENTS Widgets)
-add_qt_gui_executable(streambookmarks WIN32 MACOSX_BUNDLE
+add_qt_gui_executable(streambookmarks
main.cpp
mainwindow.cpp mainwindow.h
xbelreader.cpp xbelreader.h
@@ -27,4 +27,5 @@ target_link_libraries(streambookmarks PUBLIC
install(TARGETS streambookmarks
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
diff --git a/examples/xml/xmlstreamlint/CMakeLists.txt b/examples/xml/xmlstreamlint/CMakeLists.txt
index a3677a2c814..d67f25c4331 100644
--- a/examples/xml/xmlstreamlint/CMakeLists.txt
+++ b/examples/xml/xmlstreamlint/CMakeLists.txt
@@ -23,4 +23,5 @@ target_link_libraries(xmlstreamlint PUBLIC
install(TARGETS xmlstreamlint
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)