From 9f8a5f56464bd408dbabe4b5a3ea17410d0e9b60 Mon Sep 17 00:00:00 2001 From: liangliang723 <690428592@qq.com> Date: Sat, 8 Apr 2023 19:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20windows=20?= =?UTF-8?q?=E4=B8=8B=E7=94=9F=E6=88=90=20dll=20=E5=BA=93=E5=B8=A6=20linux?= =?UTF-8?q?=20=E5=89=8D=E7=BC=80=E5=AF=BC=E8=87=B4=E6=9F=A5=E6=89=BE?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 279fc635..c129c119 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -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})