|
1 | | -if(QT_VERSION VERSION_LESS 5.15) |
2 | | - # "versionless" Qt is not supported until 5.15 so we need to use wrappers |
3 | | - |
4 | | - function(qt_wrap_ui out) |
5 | | - qt5_wrap_ui(_uis_hdrs ${ARGN}) |
6 | | - set("${out}" ${_uis_hdrs} PARENT_SCOPE) |
7 | | - endfunction() |
8 | | - |
9 | | - function(qt_add_resources out) |
10 | | - qt5_add_resources(_resources ${ARGN}) |
11 | | - set("${out}" ${_resources} PARENT_SCOPE) |
12 | | - endfunction() |
13 | | - |
14 | | - function(qt_create_translation out) |
15 | | - qt5_create_translation(_qms ${ARGN}) |
16 | | - set("${out}" ${_qms} PARENT_SCOPE) |
17 | | - endfunction() |
18 | | - |
19 | | - function(qt_wrap_cpp out) |
20 | | - qt5_wrap_cpp(_sources ${ARGN}) |
21 | | - set("${out}" ${_sources} PARENT_SCOPE) |
22 | | - endfunction() |
23 | | - |
24 | | - set(QT_CORE_LIB Qt5::Core) |
25 | | - set(QT_TEST_LIB Qt5::Test) |
26 | | - set(QT_WIDGETS_LIB Qt5::Widgets) |
27 | | - set(QT_GUI_LIB Qt5::Gui) |
28 | | - set(QT_HELP_LIB Qt5::Help) |
29 | | - set(QT_PRINTSUPPORT_LIB Qt5::PrintSupport) |
30 | | - set(QT_CHARTS_LIB Qt5::Charts) |
31 | | - set(QT_NETWORK_LIB Qt5::Network) |
32 | | -else() |
33 | | - # use "versionless" targets - no need for wrapper functions |
34 | | - |
35 | | - set(QT_CORE_LIB Qt::Core) |
36 | | - set(QT_TEST_LIB Qt::Test) |
37 | | - set(QT_WIDGETS_LIB Qt::Widgets) |
38 | | - set(QT_GUI_LIB Qt::Gui) |
39 | | - set(QT_HELP_LIB Qt::Help) |
40 | | - set(QT_PRINTSUPPORT_LIB Qt::PrintSupport) |
41 | | - set(QT_CHARTS_LIB Qt::Charts) |
42 | | - set(QT_NETWORK_LIB Qt::Network) |
43 | | -endif() |
| 1 | +# use "versionless" targets - no need for wrapper functions |
| 2 | + |
| 3 | +set(QT_CORE_LIB Qt::Core) |
| 4 | +set(QT_TEST_LIB Qt::Test) |
| 5 | +set(QT_WIDGETS_LIB Qt::Widgets) |
| 6 | +set(QT_GUI_LIB Qt::Gui) |
| 7 | +set(QT_HELP_LIB Qt::Help) |
| 8 | +set(QT_PRINTSUPPORT_LIB Qt::PrintSupport) |
| 9 | +set(QT_CHARTS_LIB Qt::Charts) |
| 10 | +set(QT_NETWORK_LIB Qt::Network) |
0 commit comments