1#! [qt5_wrap_cpp]
2set(SOURCES myapp.cpp main.cpp)
3qt5_wrap_cpp(SOURCES myapp.h)
4add_executable(myapp ${SOURCES})
5#! [qt5_wrap_cpp]
6
7#! [qt_wrap_cpp]
8set(SOURCES myapp.cpp main.cpp)
9qt_wrap_cpp(SOURCES myapp.h)
10add_executable(myapp ${SOURCES})
11#! [qt_wrap_cpp]
12
13#! [qt5_add_resources]
14set(SOURCES main.cpp)
15qt5_add_resources(SOURCES example.qrc)
16add_executable(myapp ${SOURCES})
17#! [qt5_add_resources]
18
19#! [qt_add_resources]
20set(SOURCES main.cpp)
21qt_add_resources(SOURCES example.qrc)
22add_executable(myapp ${SOURCES})
23#! [qt_add_resources]
24
25#! [qt5_add_big_resources]
26set(SOURCES main.cpp)
27qt5_add_big_resources(SOURCES big_resource.qrc)
28add_executable(myapp ${SOURCES})
29#! [qt5_add_big_resources]
30
31#! [qt_add_big_resources]
32set(SOURCES main.cpp)
33qt_add_big_resources(SOURCES big_resource.qrc)
34add_executable(myapp ${SOURCES})
35#! [qt_add_big_resources]
36
37#! [qt5_add_binary_resources]
38qt5_add_binary_resources(resources project.qrc OPTIONS -no-compress)
39add_dependencies(myapp resources)
40#! [qt5_add_binary_resources]
41
42#! [qt_add_binary_resources]
43qt_add_binary_resources(resources project.qrc OPTIONS -no-compress)
44add_dependencies(myapp resources)
45#! [qt_add_binary_resources]
46
47#! [qt5_generate_moc]
48qt5_generate_moc(main.cpp main.moc TARGET myapp)
49#! [qt5_generate_moc]
50
51#! [qt_generate_moc]
52qt_generate_moc(main.cpp main.moc TARGET myapp)
53#! [qt_generate_moc]
54
55#! [qt5_import_plugins]
56add_executable(myapp main.cpp)
57target_link_libraries(myapp Qt5::Gui Qt5::Sql)
58qt5_import_plugins(myapp
59    INCLUDE Qt5::QCocoaIntegrationPlugin
60    EXCLUDE Qt5::QMinimalIntegrationPlugin
61    INCLUDE_BY_TYPE imageformats Qt5::QGifPlugin Qt5::QJpegPlugin
62    EXCLUDE_BY_TYPE sqldrivers
63)
64#! [qt5_import_plugins]
65
66#! [qt_import_plugins]
67add_executable(myapp main.cpp)
68target_link_libraries(myapp Qt5::Gui Qt5::Sql)
69qt_import_plugins(myapp
70    INCLUDE Qt5::QCocoaIntegrationPlugin
71    EXCLUDE Qt5::QMinimalIntegrationPlugin
72    INCLUDE_BY_TYPE imageformats Qt5::QGifPlugin Qt5::QJpegPlugin
73    EXCLUDE_BY_TYPE sqldrivers
74)
75#! [qt_import_plugins]
76