plugin-cmake: 增加对不同Qt版本构建时的尾巴,目前仅区分 Qt5/Qt6

This commit is contained in:
zinface 2023-02-14 00:06:16 +08:00
parent 7650aee5c0
commit e7b0410295
1 changed files with 7 additions and 1 deletions

View File

@ -163,10 +163,16 @@ macro(add_notepad_plugin PLUGIN_VAR PLUGIN_SRC)
# string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_GCC")
# endif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
# <Qt >
# <Qt 使 Qt5/Qt6 >
# if(NOT "${Qt5_}" STREQUAL "")
# string(APPEND ${PLUGIN_VAR}_OUTPUT_NAME "_${QT_VERSION}")
# 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}
PROPERTY