CMake: Regenerate examples to set the WIN32_EXECUTABLE property

As well as the MACOSX_BUNDLE properties as necessary.

Task-number: QTBUG-87664
Task-number: QTBUG-86827
Change-Id: I7677449a26d51fa853bd67bab6b3b61afbd2b12f
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2020-10-26 16:22:32 +01:00
parent 65fe5b2ce2
commit 397b372517
266 changed files with 1078 additions and 0 deletions

View File

@ -24,6 +24,10 @@ qt_add_executable(localfortuneclient
client.cpp client.h
main.cpp
)
set_target_properties(localfortuneclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(localfortuneclient PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(localfortuneserver
main.cpp
server.cpp server.h
)
set_target_properties(localfortuneserver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(localfortuneserver PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(sharedmemory
dialog.cpp dialog.h dialog.ui
main.cpp
)
set_target_properties(sharedmemory PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(sharedmemory PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(mimetypebrowser
mainwindow.cpp mainwindow.h
mimetypemodel.cpp mimetypemodel.h
)
set_target_properties(mimetypebrowser PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE FALSE
)
target_link_libraries(mimetypebrowser PUBLIC
Qt::Core
Qt::Gui

View File

@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(cbordump
main.cpp
)
set_target_properties(cbordump PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(cbordump PUBLIC
Qt::Core
)

View File

@ -27,6 +27,10 @@ qt_add_executable(convert
textconverter.cpp textconverter.h
xmlconverter.cpp xmlconverter.h
)
set_target_properties(convert PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(convert PUBLIC
Qt::Core
)

View File

@ -23,6 +23,10 @@ qt_add_executable(savegame
level.cpp level.h
main.cpp
)
set_target_properties(savegame PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(savegame PUBLIC
Qt::Core
)

View File

@ -24,6 +24,10 @@ qt_add_executable(mandelbrot
mandelbrotwidget.cpp mandelbrotwidget.h
renderthread.cpp renderthread.h
)
set_target_properties(mandelbrot PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(mandelbrot PUBLIC
Qt::Core
Qt::Gui

View File

@ -25,6 +25,10 @@ qt_add_executable(queuedcustomtype
renderthread.cpp renderthread.h
window.cpp window.h
)
set_target_properties(queuedcustomtype PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(queuedcustomtype PUBLIC
Qt::Core
Qt::Gui

View File

@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(semaphores
semaphores.cpp
)
set_target_properties(semaphores PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(semaphores PUBLIC
Qt::Core
)

View File

@ -20,6 +20,10 @@ find_package(Qt6 COMPONENTS Core)
qt_add_executable(waitconditions
waitconditions.cpp
)
set_target_properties(waitconditions PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(waitconditions PUBLIC
Qt::Core
)

View File

@ -23,6 +23,10 @@ qt_add_executable(contiguouscache
main.cpp
randomlistmodel.cpp randomlistmodel.h
)
set_target_properties(contiguouscache PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(contiguouscache PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(customtype
main.cpp
message.cpp message.h
)
set_target_properties(customtype PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(customtype PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(customtypesending
message.cpp message.h
window.cpp window.h
)
set_target_properties(customtypesending PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(customtypesending PUBLIC
Qt::Core
Qt::Gui

View File

@ -25,6 +25,10 @@ qt_add_executable(chat
chatmainwindow.ui
chatsetnickname.ui
)
set_target_properties(chat PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(chat PUBLIC
Qt::Core
Qt::DBus

View File

@ -39,6 +39,10 @@ qt_add_executable(chat
chatsetnickname.ui
${chat_SRCS} # special case
)
set_target_properties(chat PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(chat PUBLIC
Qt::Core
Qt::DBus

View File

@ -21,6 +21,10 @@ qt_add_executable(complexping
complexping.cpp complexping.h
ping-common.h
)
set_target_properties(complexping PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(complexping PUBLIC
# Remove: gui
Qt::DBus
@ -51,6 +55,10 @@ find_package(Qt6 COMPONENTS DBus)
qt_add_executable(complexpong
complexpong.cpp complexpong.h
)
set_target_properties(complexpong PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(complexpong PUBLIC
# Remove: gui
Qt::DBus

View File

@ -21,11 +21,21 @@ find_package(Qt6 COMPONENTS DBus)
qt_add_executable(listnames
listnames.cpp
)
set_target_properties(listnames PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(listnames PUBLIC
Qt::Core
Qt::DBus
)
if(WIN32)
set_target_properties(listnames PROPERTIES
WIN32_EXECUTABLE FALSE
)
endif()
install(TARGETS listnames
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"

View File

@ -21,6 +21,10 @@ qt_add_executable(ping
ping.cpp
ping-common.h
)
set_target_properties(ping PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(ping PUBLIC
# Remove: gui
Qt::DBus
@ -52,6 +56,10 @@ qt_add_executable(pong
ping-common.h
pong.cpp pong.h
)
set_target_properties(pong PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(pong PUBLIC
# Remove: gui
Qt::DBus

View File

@ -24,6 +24,10 @@ qt_add_executable(car
car.cpp car.h
main.cpp
)
set_target_properties(car PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(car PUBLIC
Qt::Core
Qt::DBus

View File

@ -34,6 +34,10 @@ qt_add_executable(car
main.cpp
${car_SRCS} # special case
)
set_target_properties(car PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(car PUBLIC
Qt::Core
Qt::DBus

View File

@ -24,6 +24,10 @@ qt_add_executable(controller
controller.cpp controller.h controller.ui
main.cpp
)
set_target_properties(controller PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(controller PUBLIC
Qt::Core
Qt::DBus

View File

@ -32,6 +32,10 @@ qt_add_executable(controller
main.cpp
${controller_SRCS} # special case
)
set_target_properties(controller PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(controller PUBLIC
Qt::Core
Qt::DBus

View File

@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(digiflip
digiflip.cpp
)
set_target_properties(digiflip PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(digiflip PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(flickable
flickable.cpp flickable.h
main.cpp
)
set_target_properties(flickable PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(flickable PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(flightinfo
flightinfo.cpp
form.ui
)
set_target_properties(flightinfo PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(flightinfo PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(lightmaps
mapzoom.cpp mapzoom.h
slippymap.cpp slippymap.h
)
set_target_properties(lightmaps PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(lightmaps PUBLIC
Qt::Core
Qt::Gui

View File

@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(raycasting
raycasting.cpp
)
set_target_properties(raycasting PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(raycasting PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(styleexample
main.cpp
stylewidget.cpp stylewidget.h stylewidget.ui
)
set_target_properties(styleexample PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(styleexample PUBLIC
Qt::Core
Qt::Gui

View File

@ -22,6 +22,10 @@ qt_add_executable(analogclock
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
main.cpp
)
set_target_properties(analogclock PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(analogclock PUBLIC
../rasterwindow
)

View File

@ -24,6 +24,10 @@ qt_add_executable(gui_analogclock # special case: renamed target
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
main.cpp
)
set_target_properties(gui_analogclock PROPERTIES # special case
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(gui_analogclock PUBLIC # special case
../rasterwindow
)

View File

@ -22,6 +22,10 @@ qt_add_executable(rasterwindow
main.cpp
rasterwindow.cpp rasterwindow.h
)
set_target_properties(rasterwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(rasterwindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -24,6 +24,10 @@ qt_add_executable(rasterwindow
main.cpp
rasterwindow.cpp rasterwindow.h
)
set_target_properties(rasterwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(rasterwindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -25,6 +25,10 @@ qt_add_executable(blockingfortuneclient
fortunethread.cpp fortunethread.h
main.cpp
)
set_target_properties(blockingfortuneclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(blockingfortuneclient PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(broadcastreceiver
main.cpp
receiver.cpp receiver.h
)
set_target_properties(broadcastreceiver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(broadcastreceiver PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(broadcastsender
main.cpp
sender.cpp sender.h
)
set_target_properties(broadcastsender PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(broadcastsender PUBLIC
Qt::Core
Qt::Gui

View File

@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Network)
qt_add_executable(dnslookup
dnslookup.cpp dnslookup.h
)
set_target_properties(dnslookup PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(dnslookup PUBLIC
Qt::Core
Qt::Network

View File

@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Network)
qt_add_executable(download
main.cpp
)
set_target_properties(download PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(download PUBLIC
Qt::Core
Qt::Network

View File

@ -23,6 +23,10 @@ qt_add_executable(downloadmanager
main.cpp
textprogressbar.cpp textprogressbar.h
)
set_target_properties(downloadmanager PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(downloadmanager PUBLIC
Qt::Core
Qt::Network

View File

@ -24,6 +24,10 @@ qt_add_executable(fortuneclient
client.cpp client.h
main.cpp
)
set_target_properties(fortuneclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(fortuneclient PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(fortuneserver
main.cpp
server.cpp server.h
)
set_target_properties(fortuneserver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(fortuneserver PUBLIC
Qt::Core
Qt::Gui

View File

@ -25,6 +25,10 @@ qt_add_executable(googlesuggest
main.cpp
searchbox.cpp searchbox.h
)
set_target_properties(googlesuggest PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(googlesuggest PUBLIC
Qt::Core
Qt::Gui

View File

@ -25,6 +25,10 @@ qt_add_executable(http
httpwindow.cpp httpwindow.h
main.cpp
)
set_target_properties(http PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(http PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(loopback
dialog.cpp dialog.h
main.cpp
)
set_target_properties(loopback PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(loopback PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(multicastreceiver
main.cpp
receiver.cpp receiver.h
)
set_target_properties(multicastreceiver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(multicastreceiver PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(multicastsender
main.cpp
sender.cpp sender.h
)
set_target_properties(multicastsender PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(multicastsender PUBLIC
Qt::Core
Qt::Gui

View File

@ -28,6 +28,10 @@ qt_add_executable(multistreamclient
movieconsumer.cpp movieconsumer.h
timeconsumer.cpp timeconsumer.h
)
set_target_properties(multistreamclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(multistreamclient PUBLIC
Qt::Core
Qt::Gui

View File

@ -28,6 +28,10 @@ qt_add_executable(multistreamserver
server.cpp server.h
timeprovider.cpp timeprovider.h
)
set_target_properties(multistreamserver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(multistreamserver PUBLIC
Qt::Core
Qt::Gui

View File

@ -28,6 +28,10 @@ qt_add_executable(network-chat
peermanager.cpp peermanager.h
server.cpp server.h
)
set_target_properties(network-chat PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(network-chat PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(securesocketclient
sslclient.cpp sslclient.h sslclient.ui
sslerrors.ui
)
set_target_properties(securesocketclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(securesocketclient PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(secureudpclient
main.cpp
mainwindow.cpp mainwindow.h mainwindow.ui
)
set_target_properties(secureudpclient PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(secureudpclient PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(secureudpserver
nicselector.cpp nicselector.h nicselector.ui
server.cpp server.h
)
set_target_properties(secureudpserver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(secureudpserver PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(threadedfortuneserver
fortunethread.cpp fortunethread.h
main.cpp
)
set_target_properties(threadedfortuneserver PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(threadedfortuneserver PUBLIC
Qt::Core
Qt::Gui

View File

@ -35,6 +35,10 @@ qt_add_executable(torrent
torrentserver.cpp torrentserver.h
trackerclient.cpp trackerclient.h
)
set_target_properties(torrent PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(torrent PUBLIC
Qt::Core
Qt::Gui

View File

@ -35,6 +35,10 @@ qt_add_executable(torrent
torrentserver.cpp torrentserver.h
trackerclient.cpp trackerclient.h
)
set_target_properties(torrent PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(torrent PUBLIC forms) # special case
target_link_libraries(torrent PUBLIC
Qt::Core

View File

@ -28,6 +28,10 @@ qt_add_executable(2dpainting
widget.cpp widget.h
window.cpp window.h
)
set_target_properties(2dpainting PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(2dpainting PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(computegles31
glwindow.cpp glwindow.h
main.cpp
)
set_target_properties(computegles31 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(computegles31 PUBLIC
Qt::Core
Qt::Gui

View File

@ -25,6 +25,10 @@ qt_add_executable(contextinfo
renderwindow.cpp renderwindow.h
widget.cpp widget.h
)
set_target_properties(contextinfo PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(contextinfo PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(cube
main.cpp
mainwidget.cpp mainwidget.h
)
set_target_properties(cube PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(cube PUBLIC
Qt::Core
Qt::Gui

View File

@ -28,6 +28,10 @@ qt_add_executable(hellogl2
mainwindow.cpp mainwindow.h
window.cpp window.h
)
set_target_properties(hellogl2 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellogl2 PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(hellogles3
glwindow.cpp glwindow.h
main.cpp
)
set_target_properties(hellogles3 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellogles3 PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(hellowindow
hellowindow.cpp hellowindow.h
main.cpp
)
set_target_properties(hellowindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellowindow PUBLIC
Qt::Core
Qt::CorePrivate

View File

@ -23,6 +23,10 @@ qt_add_executable(openglwindow
main.cpp
openglwindow.cpp openglwindow.h
)
set_target_properties(openglwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(openglwindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -23,6 +23,10 @@ qt_add_executable(paintedwindow
main.cpp
paintedwindow.cpp paintedwindow.h
)
set_target_properties(paintedwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(paintedwindow PUBLIC
Qt::Core
Qt::Gui

View File

@ -27,6 +27,10 @@ qt_add_executable(qopenglwidget
main.cpp
mainwindow.cpp mainwindow.h
)
set_target_properties(qopenglwidget PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(qopenglwidget PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(qopenglwindow
background_renderer.cpp background_renderer.h
main.cpp
)
set_target_properties(qopenglwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(qopenglwindow PUBLIC
.
)

View File

@ -26,6 +26,10 @@ qt_add_executable(textures
main.cpp
window.cpp window.h
)
set_target_properties(textures PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(textures PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(threadedqopenglwidget
main.cpp
mainwindow.cpp mainwindow.h
)
set_target_properties(threadedqopenglwidget PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(threadedqopenglwidget PUBLIC
Qt::Core
Qt::Gui

View File

@ -21,6 +21,10 @@ find_package(Qt6 COMPONENTS Gui)
qt_add_executable(qrasterwindow
main.cpp
)
set_target_properties(qrasterwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(qrasterwindow PUBLIC
Qt::Core
Qt::Gui

View File

@ -22,6 +22,10 @@ qt_add_executable(windows
main.cpp
window.cpp window.h
)
set_target_properties(windows PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE TRUE
)
target_link_libraries(windows PUBLIC
Qt::Core
Qt::CorePrivate

View File

@ -24,6 +24,10 @@ qt_add_executable(imagescaling
imagescaling.cpp imagescaling.h
main.cpp
)
set_target_properties(imagescaling PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(imagescaling PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Concurrent)
qt_add_executable(mapdemo
main.cpp
)
set_target_properties(mapdemo PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(mapdemo PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Concurrent)
qt_add_executable(mapdemo
main.cpp
)
set_target_properties(mapdemo PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(mapdemo PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(progressdialog
main.cpp
)
set_target_properties(progressdialog PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE TRUE
)
target_link_libraries(progressdialog PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(runfunction
main.cpp
)
set_target_properties(runfunction PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(runfunction PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Widgets)
qt_add_executable(wordcount
main.cpp
)
set_target_properties(wordcount PROPERTIES
WIN32_EXECUTABLE FALSE
MACOSX_BUNDLE FALSE
)
target_link_libraries(wordcount PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial1
testqstring.cpp
)
set_target_properties(tutorial1 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tutorial1 PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial2
testqstring.cpp
)
set_target_properties(tutorial2 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tutorial2 PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial3
testgui.cpp
)
set_target_properties(tutorial3 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tutorial3 PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial4
testgui.cpp
)
set_target_properties(tutorial4 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tutorial4 PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS Test)
qt_add_executable(tutorial5
benchmarking.cpp
)
set_target_properties(tutorial5 PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tutorial5 PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(books
initdb.h
main.cpp
)
set_target_properties(books PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(books PUBLIC
.
)

View File

@ -25,6 +25,10 @@ qt_add_executable(cachedtable
main.cpp
tableeditor.cpp tableeditor.h
)
set_target_properties(cachedtable PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(cachedtable PUBLIC
Qt::Core
Qt::Gui

View File

@ -27,6 +27,10 @@ qt_add_executable(drilldown
main.cpp
view.cpp view.h
)
set_target_properties(drilldown PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(drilldown PUBLIC
Qt::Core
Qt::Gui

View File

@ -27,6 +27,10 @@ qt_add_executable(masterdetail
main.cpp
mainwindow.cpp mainwindow.h
)
set_target_properties(masterdetail PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(masterdetail PUBLIC
Qt::Core
Qt::Gui

View File

@ -26,6 +26,10 @@ qt_add_executable(querymodel
editablesqlmodel.cpp editablesqlmodel.h
main.cpp
)
set_target_properties(querymodel PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(querymodel PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(relationaltablemodel
../connection.h
relationaltablemodel.cpp
)
set_target_properties(relationaltablemodel PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(relationaltablemodel PUBLIC
Qt::Core
Qt::Gui

View File

@ -27,6 +27,10 @@ qt_add_executable(sqlbrowser
main.cpp
qsqlconnectiondialog.cpp qsqlconnectiondialog.h qsqlconnectiondialog.ui
)
set_target_properties(sqlbrowser PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(sqlbrowser PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(sqlwidgetmapper
main.cpp
window.cpp window.h
)
set_target_properties(sqlwidgetmapper PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(sqlwidgetmapper PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(tablemodel
../connection.h
tablemodel.cpp
)
set_target_properties(tablemodel PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tablemodel PUBLIC
Qt::Core
Qt::Gui

View File

@ -29,6 +29,10 @@ qt_add_executable(hellovulkancubes
shader.cpp shader.h
vulkanwindow.cpp vulkanwindow.h
)
set_target_properties(hellovulkancubes PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellovulkancubes PUBLIC
Qt::Concurrent
Qt::Core

View File

@ -22,6 +22,10 @@ qt_add_executable(hellovulkantexture
hellovulkantexture.cpp hellovulkantexture.h
main.cpp
)
set_target_properties(hellovulkantexture PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellovulkantexture PUBLIC
Qt::Core
Qt::Gui

View File

@ -22,6 +22,10 @@ qt_add_executable(hellovulkantriangle
../shared/trianglerenderer.cpp ../shared/trianglerenderer.h
main.cpp
)
set_target_properties(hellovulkantriangle PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellovulkantriangle PUBLIC
Qt::Core
Qt::Gui

View File

@ -24,6 +24,10 @@ qt_add_executable(hellovulkanwidget
hellovulkanwidget.cpp hellovulkanwidget.h
main.cpp
)
set_target_properties(hellovulkanwidget PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellovulkanwidget PUBLIC
Qt::Core
Qt::Gui

View File

@ -22,6 +22,10 @@ qt_add_executable(hellovulkanwindow
hellovulkanwindow.cpp hellovulkanwindow.h
main.cpp
)
set_target_properties(hellovulkanwindow PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(hellovulkanwindow PUBLIC
Qt::Core
Qt::Gui

View File

@ -25,6 +25,10 @@ qt_add_executable(easing
main.cpp
window.cpp window.h
)
set_target_properties(easing PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(easing PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(screenshot
main.cpp
screenshot.cpp screenshot.h
)
set_target_properties(screenshot PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(screenshot PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(systray
main.cpp
window.cpp window.h
)
set_target_properties(systray PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(systray PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(classwizard
classwizard.cpp classwizard.h
main.cpp
)
set_target_properties(classwizard PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(classwizard PUBLIC
Qt::Core
Qt::Gui

View File

@ -23,6 +23,10 @@ qt_add_executable(extension
finddialog.cpp finddialog.h
main.cpp
)
set_target_properties(extension PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(extension PUBLIC
Qt::Core
Qt::Gui

Some files were not shown because too many files have changed in this diff Show More