Examples: Fix whitespace issues in CMakeLists.txt

Pick-to: 6.3
Change-Id: I8e6dd1f250f8be6016ee4164cb2ab7034cbb1203
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Kai Köhne 2021-12-08 17:25:35 +01:00 committed by Kai Koehne
parent 51f22a3a04
commit 80a76df178
241 changed files with 730 additions and 307 deletions

View File

@ -22,6 +22,7 @@ qt_add_executable(bindablesubscription
bindablesubscription.cpp bindablesubscription.h
bindableuser.cpp bindableuser.h
)
target_link_libraries(bindablesubscription PUBLIC
Qt::Core
Qt::Gui

View File

@ -21,13 +21,13 @@ qt_add_executable(subscription
subscription.cpp subscription.h
user.cpp user.h
)
target_link_libraries(subscription PUBLIC
Qt::Core
Qt::Gui
Qt::Widgets
)
# Resources:
set(countries_resource_files
"../shared/finland.png"

View File

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -20,10 +20,12 @@ 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED 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

@ -25,10 +25,12 @@ 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

@ -21,10 +21,12 @@ 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

@ -20,10 +20,12 @@ 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

@ -21,10 +21,12 @@ 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -20,10 +20,12 @@ 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

@ -20,6 +20,7 @@ qt_add_dbus_interface(chat_SRCS
org.example.chat.xml
chat_interface
)
qt_add_dbus_adaptor(chat_SRCS
org.example.chat.xml
qobject.h
@ -33,10 +34,12 @@ qt_add_executable(chat
chatsetnickname.ui
${chat_SRCS}
)
set_target_properties(chat PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(chat PUBLIC
Qt::Core
Qt::DBus

View File

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core 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

View File

@ -28,10 +28,12 @@ qt_add_executable(car
main.cpp
${car_SRCS}
)
set_target_properties(car PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(car PUBLIC
Qt::Core
Qt::DBus

View File

@ -26,10 +26,12 @@ qt_add_executable(controller
main.cpp
${controller_SRCS}
)
set_target_properties(controller PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(controller PUBLIC
Qt::Core
Qt::DBus

View File

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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
@ -30,7 +32,6 @@ target_link_libraries(flightinfo PUBLIC
Qt::Widgets
)
# Resources:
set(flightinfo_resource_files
"aircraft.png"

View File

@ -21,10 +21,12 @@ 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

@ -18,17 +18,18 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui 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
Qt::Widgets
)
# Resources:
set(raycasting_resource_files
"textures.png"

View File

@ -19,17 +19,18 @@ 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
Qt::Widgets
)
# Resources:
set(styleexample_resource_files
"files/add.png"

View File

@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.16)
project(analogclock LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
@ -20,13 +19,16 @@ qt_add_executable(gui_analogclock
../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h
main.cpp
)
set_target_properties(gui_analogclock PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(gui_analogclock PUBLIC
../rasterwindow
)
target_link_libraries(gui_analogclock PUBLIC
Qt::Gui
)

View File

@ -19,13 +19,16 @@ 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}
)
target_link_libraries(rasterwindow PUBLIC
Qt::Core
Qt::Gui

View File

@ -20,10 +20,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core 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

@ -20,10 +20,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -20,10 +20,12 @@ 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

@ -20,10 +20,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -23,10 +23,12 @@ 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

@ -23,10 +23,12 @@ 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

@ -23,10 +23,12 @@ 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

@ -21,10 +21,12 @@ 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
@ -32,7 +34,6 @@ target_link_libraries(securesocketclient PUBLIC
Qt::Widgets
)
# Resources:
set(securesocketclient_resource_files
"encrypted.png"

View File

@ -21,10 +21,12 @@ 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

@ -21,10 +21,12 @@ 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

@ -21,10 +21,12 @@ 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

@ -30,10 +30,12 @@ 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
@ -41,7 +43,6 @@ target_link_libraries(torrent PUBLIC
Qt::Widgets
)
# Resources:
set(icons_resource_files
"icons/1downarrow.png"

View File

@ -22,10 +22,12 @@ 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

@ -19,17 +19,18 @@ 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
Qt::OpenGL
)
# Resources:
set(computegles31_resource_files
"Qt-logo-medium.png"

View File

@ -20,10 +20,12 @@ 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

@ -20,10 +20,12 @@ 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
@ -32,7 +34,6 @@ target_link_libraries(cube PUBLIC
Qt::Widgets
)
# Resources:
set(shaders_resource_files
"fshader.glsl"
@ -45,6 +46,7 @@ qt6_add_resources(cube "shaders"
FILES
${shaders_resource_files}
)
set(textures_resource_files
"cube.png"
)

View File

@ -22,10 +22,12 @@ 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

@ -20,17 +20,18 @@ 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
Qt::OpenGL
)
# Resources:
set(hellogles3_resource_files
"qtlogo.png"

View File

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -21,10 +21,12 @@ 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
@ -33,7 +35,6 @@ target_link_libraries(qopenglwidget PUBLIC
Qt::Widgets
)
# Resources:
set(texture_resource_files
"qt.png"

View File

@ -19,10 +19,12 @@ 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
.
)
@ -33,7 +35,6 @@ target_link_libraries(qopenglwindow PUBLIC
Qt::OpenGL
)
# Resources:
set(shaders_resource_files
"background.frag"

View File

@ -20,10 +20,12 @@ 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
@ -32,7 +34,6 @@ target_link_libraries(textures PUBLIC
Qt::Widgets
)
# Resources:
set(textures_resource_files
"images/side1.png"

View File

@ -20,10 +20,12 @@ 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core 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

@ -19,10 +19,12 @@ 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

@ -20,10 +20,12 @@ 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

@ -18,15 +18,18 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui)
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
Qt::Gui
)
install(TARGETS mapdemo
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"

View File

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Concurrent Core Gui 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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
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

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Test Widgets)
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

@ -21,10 +21,12 @@ qt_add_executable(books
initdb.h
main.cpp
)
set_target_properties(books PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_include_directories(books PUBLIC
.
)
@ -36,7 +38,6 @@ target_link_libraries(books PUBLIC
Qt::Widgets
)
# Resources:
set(books_resource_files
"images/star.png"

View File

@ -20,10 +20,12 @@ 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

@ -22,10 +22,12 @@ 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
@ -33,7 +35,6 @@ target_link_libraries(drilldown PUBLIC
Qt::Widgets
)
# Resources:
set(drilldown_resource_files
"images/qt-creator.png"

View File

@ -21,10 +21,12 @@ 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
@ -33,7 +35,6 @@ target_link_libraries(masterdetail PUBLIC
Qt::Xml
)
# Resources:
set(masterdetail_resource_files
"images/icon.png"

View File

@ -21,10 +21,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -22,10 +22,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -19,10 +19,12 @@ 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

@ -24,10 +24,12 @@ 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
@ -35,14 +37,15 @@ target_link_libraries(hellovulkancubes PUBLIC
Qt::Widgets
)
# Resources:
set_source_files_properties("../shared/block.buf"
PROPERTIES QT_RESOURCE_ALIAS "block.buf"
)
set_source_files_properties("../shared/qt_logo.buf"
PROPERTIES QT_RESOURCE_ALIAS "qt_logo.buf"
)
set(hellovulkancubes_resource_files
"../shared/block.buf"
"../shared/qt_logo.buf"

View File

@ -19,16 +19,17 @@ 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
)
# Resources:
set(hellovulkantexture_resource_files
"qt256.png"

View File

@ -19,23 +19,26 @@ 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
)
# Resources:
set_source_files_properties("../shared/color_frag.spv"
PROPERTIES QT_RESOURCE_ALIAS "color_frag.spv"
)
set_source_files_properties("../shared/color_vert.spv"
PROPERTIES QT_RESOURCE_ALIAS "color_vert.spv"
)
set(hellovulkantriangle_resource_files
"../shared/color_frag.spv"
"../shared/color_vert.spv"

View File

@ -20,24 +20,27 @@ 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
Qt::Widgets
)
# Resources:
set_source_files_properties("../shared/color_frag.spv"
PROPERTIES QT_RESOURCE_ALIAS "color_frag.spv"
)
set_source_files_properties("../shared/color_vert.spv"
PROPERTIES QT_RESOURCE_ALIAS "color_vert.spv"
)
set(hellovulkanwidget_resource_files
"../shared/color_frag.spv"
"../shared/color_vert.spv"

View File

@ -19,10 +19,12 @@ 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

@ -21,17 +21,18 @@ 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
Qt::Widgets
)
# Resources:
set(easing_resource_files
"images/qt-logo.png"

View File

@ -19,10 +19,12 @@ 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

@ -19,17 +19,18 @@ 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
Qt::Widgets
)
# Resources:
set(systray_resource_files
"images/bad.png"

View File

@ -19,17 +19,18 @@ 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
Qt::Widgets
)
# Resources:
set(classwizard_resource_files
"images/background.png"

View File

@ -19,10 +19,12 @@ 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

View File

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

View File

@ -19,10 +19,12 @@ qt_add_executable(licensewizard
licensewizard.cpp licensewizard.h
main.cpp
)
set_target_properties(licensewizard PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(licensewizard PUBLIC
Qt::Core
Qt::Gui
@ -30,7 +32,6 @@ target_link_libraries(licensewizard PUBLIC
Qt::Widgets
)
# Resources:
set(licensewizard_resource_files
"images/logo.png"

View File

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

View File

@ -19,10 +19,12 @@ qt_add_executable(tabdialog
main.cpp
tabdialog.cpp tabdialog.h
)
set_target_properties(tabdialog PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(tabdialog PUBLIC
Qt::Core
Qt::Gui

View File

@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
qt_add_executable(trivialwizard
trivialwizard.cpp
)
set_target_properties(trivialwizard PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(trivialwizard PUBLIC
Qt::Core
Qt::Gui

View File

@ -19,17 +19,18 @@ qt_add_executable(draggableicons
dragwidget.cpp dragwidget.h
main.cpp
)
set_target_properties(draggableicons PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(draggableicons PUBLIC
Qt::Core
Qt::Gui
Qt::Widgets
)
# Resources:
set(draggableicons_resource_files
"images/boat.png"

View File

@ -19,17 +19,18 @@ qt_add_executable(draggabletext
dragwidget.cpp dragwidget.h
main.cpp
)
set_target_properties(draggabletext PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(draggabletext PUBLIC
Qt::Core
Qt::Gui
Qt::Widgets
)
# Resources:
set(draggabletext_resource_files
"words.txt"

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