diff options
Diffstat (limited to 'cmake/modules/QtMacros.cmake')
-rw-r--r-- | cmake/modules/QtMacros.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/modules/QtMacros.cmake b/cmake/modules/QtMacros.cmake new file mode 100644 index 00000000..ab514372 --- /dev/null +++ b/cmake/modules/QtMacros.cmake @@ -0,0 +1,11 @@ +macro(qt_get_moc_flags moc_flags) + if(QT_VERSION_MAJOR MATCHES 5) + qt5_get_moc_flags(${moc_flags}) + endif() +endmacro() + +macro(qt_create_moc_command infile outfile moc_flags moc_options) + if(QT_VERSION_MAJOR MATCHES 5) + qt5_create_moc_command(${infile} ${outfile} "${moc_flags}" "${moc_options}" "" "") + endif() +endmacro() |