diff options
author | Craig Scott <craig.scott@qt.io> | 2021-09-08 18:00:55 +1000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-09 18:32:17 +0000 |
commit | 5436e43aec026c54e726f6a656acc08c7899b63a (patch) | |
tree | 45f093d75a1545f4b352c05ffadb92b1441f78f7 | |
parent | 12d81c990722310bd422c2f423f7909472fb1dbd (diff) |
Remove unused qt5_... CMake command snippets
Task-number: QTBUG-95712
Change-Id: I92535fd96937638bb8997a63455ba5152055b72a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 2ad35d133a8d71d4ce21e25df7b12b70cc2f8151)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/corelib/doc/snippets/cmake-macros/examples.cmake | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/corelib/doc/snippets/cmake-macros/examples.cmake b/src/corelib/doc/snippets/cmake-macros/examples.cmake index 8b28c18a30..a4def96600 100644 --- a/src/corelib/doc/snippets/cmake-macros/examples.cmake +++ b/src/corelib/doc/snippets/cmake-macros/examples.cmake @@ -1,21 +1,9 @@ -#! [qt5_wrap_cpp] -set(SOURCES myapp.cpp main.cpp) -qt5_wrap_cpp(SOURCES myapp.h) -add_executable(myapp ${SOURCES}) -#! [qt5_wrap_cpp] - #! [qt_wrap_cpp] set(SOURCES myapp.cpp main.cpp) qt_wrap_cpp(SOURCES myapp.h) add_executable(myapp ${SOURCES}) #! [qt_wrap_cpp] -#! [qt5_add_resources] -set(SOURCES main.cpp) -qt5_add_resources(SOURCES example.qrc) -add_executable(myapp ${SOURCES}) -#! [qt5_add_resources] - #! [qt_add_resources] set(SOURCES main.cpp) qt_add_resources(SOURCES example.qrc) @@ -29,47 +17,21 @@ qt_add_resources(myapp "images" FILES image1.png image2.png) #! [qt_add_resources_target] -#! [qt5_add_big_resources] -set(SOURCES main.cpp) -qt5_add_big_resources(SOURCES big_resource.qrc) -add_executable(myapp ${SOURCES}) -#! [qt5_add_big_resources] - #! [qt_add_big_resources] set(SOURCES main.cpp) qt_add_big_resources(SOURCES big_resource.qrc) add_executable(myapp ${SOURCES}) #! [qt_add_big_resources] -#! [qt5_add_binary_resources] -qt5_add_binary_resources(resources project.qrc OPTIONS -no-compress) -add_dependencies(myapp resources) -#! [qt5_add_binary_resources] - #! [qt_add_binary_resources] qt_add_binary_resources(resources project.qrc OPTIONS -no-compress) add_dependencies(myapp resources) #! [qt_add_binary_resources] -#! [qt5_generate_moc] -qt5_generate_moc(main.cpp main.moc TARGET myapp) -#! [qt5_generate_moc] - #! [qt_generate_moc] qt_generate_moc(main.cpp main.moc TARGET myapp) #! [qt_generate_moc] -#! [qt5_import_plugins] -add_executable(myapp main.cpp) -target_link_libraries(myapp Qt5::Gui Qt5::Sql) -qt5_import_plugins(myapp - INCLUDE Qt5::QCocoaIntegrationPlugin - EXCLUDE Qt5::QMinimalIntegrationPlugin - INCLUDE_BY_TYPE imageformats Qt5::QGifPlugin Qt5::QJpegPlugin - EXCLUDE_BY_TYPE sqldrivers -) -#! [qt5_import_plugins] - #! [qt_import_plugins] add_executable(myapp main.cpp) target_link_libraries(myapp Qt::Gui Qt::Sql) |