mirror of https://gitee.com/cxasm/notepad--.git
plugin-cmake: 补充对 qrc 文件的 CMAKE_AUTORCC 默认构建支持
This commit is contained in:
parent
bfade94164
commit
44de15f3de
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue