Merge pull request #28 from LiangLiang723/win32_cmake_fix

🐛 修复 windows 下生成 dll 库带 linux 前缀导致查找不到控件
This commit is contained in:
zhuzichu 2023-04-08 19:43:35 +08:00 committed by GitHub
commit 738db25c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,10 @@ set(RC_ICONS
favicon.ico
)
if(WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif()
qt_add_resources(QT_RESOURCES ${RESOURCES})
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS} ${QT_RESOURCES} ${RC_ICONS})