From 968b92f50b3e85e355abf08a885ab16f3f901e09 Mon Sep 17 00:00:00 2001 From: jokul Date: Sun, 12 Jul 2026 20:40:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4.so=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84lib=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 063c49c..08cdc1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,19 +14,21 @@ set(CMAKE_AUTORCC ON) find_package(Qt6 REQUIRED COMPONENTS Widgets DBus Quick) find_package(Dtk6 REQUIRED COMPONENTS Core) -add_library(dde-graphics-driver SHARED +add_library(org.deepin.ds.graphics-driver SHARED graphicsdriverapplet.h graphicsdriverapplet.cpp gpuindicator.h gpuindicator.cpp ) -target_include_directories(dde-graphics-driver PRIVATE +target_include_directories(org.deepin.ds.graphics-driver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /usr/include/dde-shell ) -target_link_libraries(dde-graphics-driver PRIVATE +set_target_properties(org.deepin.ds.graphics-driver PROPERTIES PREFIX "") + +target_link_libraries(org.deepin.ds.graphics-driver PRIVATE Qt6::Widgets Qt6::DBus Qt6::Quick @@ -34,5 +36,5 @@ target_link_libraries(dde-graphics-driver PRIVATE ) # 安装到dde-shell插件目录 -install(TARGETS dde-graphics-driver DESTINATION /usr/lib/x86_64-linux-gnu/dde-shell) +install(TARGETS org.deepin.ds.graphics-driver DESTINATION /usr/lib/x86_64-linux-gnu/dde-shell) install(DIRECTORY package/ DESTINATION /usr/lib/x86_64-linux-gnu/dde-shell/org.deepin.ds.graphics-driver)