From 80a76df1784a135fa1d86ac88f8c4d2dc6bf8c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 8 Dec 2021 17:25:35 +0100 Subject: Examples: Fix whitespace issues in CMakeLists.txt Pick-to: 6.3 Change-Id: I8e6dd1f250f8be6016ee4164cb2ab7034cbb1203 Reviewed-by: Alexandru Croitor --- examples/widgets/graphicsview/anchorlayout/CMakeLists.txt | 4 +++- examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt | 5 +++-- examples/widgets/graphicsview/chip/CMakeLists.txt | 5 +++-- examples/widgets/graphicsview/collidingmice/CMakeLists.txt | 5 +++-- examples/widgets/graphicsview/diagramscene/CMakeLists.txt | 5 +++-- examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt | 5 +++-- examples/widgets/graphicsview/elasticnodes/CMakeLists.txt | 4 +++- examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt | 5 +++-- examples/widgets/graphicsview/flowlayout/CMakeLists.txt | 4 +++- examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt | 4 +++- examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt | 5 +++-- 11 files changed, 33 insertions(+), 18 deletions(-) (limited to 'examples/widgets/graphicsview') diff --git a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt index f4151c77b5..7ec2bcf31e 100644 --- a/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/anchorlayout/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/anchorlayout") @@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) qt_add_executable(anchorlayout main.cpp ) + set_target_properties(anchorlayout PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(anchorlayout PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt index a788419124..2d3f57dbaf 100644 --- a/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt +++ b/examples/widgets/graphicsview/basicgraphicslayouts/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/basicgraphicslayouts") @@ -20,17 +20,18 @@ qt_add_executable(basicgraphicslayouts main.cpp window.cpp window.h ) + set_target_properties(basicgraphicslayouts PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(basicgraphicslayouts PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(basicgraphicslayouts_resource_files "images/block.png" diff --git a/examples/widgets/graphicsview/chip/CMakeLists.txt b/examples/widgets/graphicsview/chip/CMakeLists.txt index dc48cdd84f..d187ddeacf 100644 --- a/examples/widgets/graphicsview/chip/CMakeLists.txt +++ b/examples/widgets/graphicsview/chip/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/chip") @@ -24,17 +24,18 @@ qt_add_executable(chip mainwindow.cpp mainwindow.h view.cpp view.h ) + set_target_properties(chip PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(chip PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(images_resource_files "fileprint.png" diff --git a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt index aab329528f..f45831533c 100644 --- a/examples/widgets/graphicsview/collidingmice/CMakeLists.txt +++ b/examples/widgets/graphicsview/collidingmice/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/collidingmice") @@ -19,17 +19,18 @@ qt_add_executable(collidingmice main.cpp mouse.cpp mouse.h ) + set_target_properties(collidingmice PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(collidingmice PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(mice_resource_files "images/cheese.jpg" diff --git a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt index 5559f16dea..d2d056d2a6 100644 --- a/examples/widgets/graphicsview/diagramscene/CMakeLists.txt +++ b/examples/widgets/graphicsview/diagramscene/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/diagramscene") @@ -23,17 +23,18 @@ qt_add_executable(diagramscene main.cpp mainwindow.cpp mainwindow.h ) + set_target_properties(diagramscene PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(diagramscene PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(diagramscene_resource_files "images/background1.png" diff --git a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt index eb4f8bf00f..f18037b25e 100644 --- a/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt +++ b/examples/widgets/graphicsview/dragdroprobot/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/dragdroprobot") @@ -20,17 +20,18 @@ qt_add_executable(dragdroprobot main.cpp robot.cpp robot.h ) + set_target_properties(dragdroprobot PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(dragdroprobot PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(robot_resource_files "images/head.png" diff --git a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt index 369ed964c5..f7aa44fc38 100644 --- a/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt +++ b/examples/widgets/graphicsview/elasticnodes/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/elasticnodes") @@ -21,10 +21,12 @@ qt_add_executable(elasticnodes main.cpp node.cpp node.h ) + set_target_properties(elasticnodes PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(elasticnodes PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt index 63eecd3be9..6f37c28b98 100644 --- a/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt +++ b/examples/widgets/graphicsview/embeddeddialogs/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/embeddeddialogs") @@ -20,17 +20,18 @@ qt_add_executable(embeddeddialogs embeddeddialog.cpp embeddeddialog.h embeddeddialog.ui main.cpp ) + set_target_properties(embeddeddialogs PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(embeddeddialogs PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(embeddeddialogs_resource_files "No-Ones-Laughing-3.jpg" diff --git a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt index 9093f6303b..ffcbdb14c4 100644 --- a/examples/widgets/graphicsview/flowlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/flowlayout/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview_flowlayout") @@ -20,10 +20,12 @@ qt_add_executable(graphicsview_flowlayout main.cpp window.cpp window.h ) + set_target_properties(graphicsview_flowlayout PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(graphicsview_flowlayout PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt index 73f25bb156..24571d9533 100644 --- a/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/simpleanchorlayout/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/simpleanchorlayout") @@ -18,10 +18,12 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) qt_add_executable(simpleanchorlayout main.cpp ) + set_target_properties(simpleanchorlayout PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(simpleanchorlayout PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt index 92056a1c51..6261c536ef 100644 --- a/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt +++ b/examples/widgets/graphicsview/weatheranchorlayout/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/weatheranchorlayout") @@ -18,17 +18,18 @@ find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) qt_add_executable(weatheranchorlayout main.cpp ) + set_target_properties(weatheranchorlayout PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(weatheranchorlayout PUBLIC Qt::Core Qt::Gui Qt::Widgets ) - # Resources: set(weatheranchorlayout_resource_files "images/5days.jpg" -- cgit v1.2.3