plugin-cmake: 补充对 qrc 文件的 CMAKE_AUTORCC 默认构建支持

This commit is contained in:
zinface 2023-02-13 13:12:27 +08:00
parent bfade94164
commit 44de15f3de
1 changed files with 2 additions and 0 deletions

View File

@ -62,12 +62,14 @@ set(NOTEPAD_PLUGIN_LIBDIR
if(NOTEPAD_BUILD_BY_QT5) if(NOTEPAD_BUILD_BY_QT5)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 COMPONENTS Core Widgets REQUIRED) find_package(Qt5 COMPONENTS Core Widgets REQUIRED)
endif(NOTEPAD_BUILD_BY_QT5) endif(NOTEPAD_BUILD_BY_QT5)
if(NOTEPAD_BUILD_BY_QT6) if(NOTEPAD_BUILD_BY_QT6)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt6 COMPONENTS Core Widgets REQUIRED) find_package(Qt6 COMPONENTS Core Widgets REQUIRED)
endif(NOTEPAD_BUILD_BY_QT6) endif(NOTEPAD_BUILD_BY_QT6)