diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-11-15 22:50:53 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-11-30 14:48:50 +0100 |
commit | d221ea609fdd9f5dc99f520391beddc057373278 (patch) | |
tree | 5e0aa39ba1807b226f11c17b9b7607182ede055d /examples/widgets/itemviews | |
parent | de7287be69b449b1da13148e62fbeef0406eb792 (diff) |
Examples: Remove duplicated Qt6::PrintSupport link information
Some CMakeLists.txt files did link to Qt6::PrintSupport twice. Also
unify formatting and order of the linker step.
Change-Id: I4af935c5dc3de6c243aad8511b0803ceaa872589
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/widgets/itemviews')
-rw-r--r-- | examples/widgets/itemviews/pixelator/CMakeLists.txt | 10 | ||||
-rw-r--r-- | examples/widgets/itemviews/spreadsheet/CMakeLists.txt | 6 |
2 files changed, 4 insertions, 12 deletions
diff --git a/examples/widgets/itemviews/pixelator/CMakeLists.txt b/examples/widgets/itemviews/pixelator/CMakeLists.txt index 52dd6b74e5..f377791940 100644 --- a/examples/widgets/itemviews/pixelator/CMakeLists.txt +++ b/examples/widgets/itemviews/pixelator/CMakeLists.txt @@ -35,6 +35,10 @@ target_link_libraries(pixelator PUBLIC Qt6::Widgets ) +if(TARGET Qt6::PrintSupport) + target_link_libraries(pixelator PUBLIC Qt6::PrintSupport) +endif() + # Resources: set(images_resource_files "images/qt.png" @@ -47,12 +51,6 @@ qt_add_resources(pixelator "images" ${images_resource_files} ) -if(TARGET Qt6::PrintSupport) - target_link_libraries(pixelator PUBLIC - Qt6::PrintSupport - ) -endif() - install(TARGETS pixelator RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" diff --git a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt index 1481533dca..94b6c26400 100644 --- a/examples/widgets/itemviews/spreadsheet/CMakeLists.txt +++ b/examples/widgets/itemviews/spreadsheet/CMakeLists.txt @@ -52,12 +52,6 @@ qt_add_resources(spreadsheet "spreadsheet" ${spreadsheet_resource_files} ) -if(TARGET Qt6::PrintSupport) - target_link_libraries(spreadsheet PUBLIC - Qt6::PrintSupport - ) -endif() - install(TARGETS spreadsheet RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" |