diff --git a/CMakeLists.txt b/CMakeLists.txt index b7f332c87..7df089cf2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,10 +135,11 @@ set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules" ) if( POLICY CMP0057 ) cmake_policy( SET CMP0057 NEW ) endif() -# CMake 3.9, 3.10 compatibility +# Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files. if( POLICY CMP0071 ) cmake_policy( SET CMP0071 NEW ) endif() +# Recognize more macros to trigger automoc if(NOT CMAKE_VERSION VERSION_LESS "3.10.0") list(APPEND CMAKE_AUTOMOC_MACRO_NAMES "K_PLUGIN_FACTORY_WITH_JSON"