mirror of https://gitee.com/cxasm/notepad--.git
plugin-cmake: 增加对不同Qt版本构建时的尾巴,目前仅区分 Qt5/Qt6
This commit is contained in:
parent
7650aee5c0
commit
e7b0410295
|
@ -163,10 +163,16 @@ macro(add_notepad_plugin PLUGIN_VAR PLUGIN_SRC)
|
||||||
# string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_GCC")
|
# string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_GCC")
|
||||||
# endif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
|
# endif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
|
||||||
|
|
||||||
# <Qt 版本尾巴规划:待确定>
|
# <Qt 版本尾巴规划:待确定,目前使用 Qt5/Qt6 进行区分>
|
||||||
# if(NOT "${Qt5_}" STREQUAL "")
|
# if(NOT "${Qt5_}" STREQUAL "")
|
||||||
# string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_${QT_VERSION}")
|
# string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_${QT_VERSION}")
|
||||||
# endif(NOT "${QT_VERSION}" STREQUAL "")
|
# endif(NOT "${QT_VERSION}" STREQUAL "")
|
||||||
|
if(NOTEPAD_BUILD_BY_QT5)
|
||||||
|
string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_Qt5")
|
||||||
|
else()
|
||||||
|
string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_Qt6")
|
||||||
|
endif(NOTEPAD_BUILD_BY_QT5)
|
||||||
|
|
||||||
|
|
||||||
set_property(TARGET ${PLUGIN_VAR}
|
set_property(TARGET ${PLUGIN_VAR}
|
||||||
PROPERTY
|
PROPERTY
|
||||||
|
|
Loading…
Reference in New Issue