From a0bc8a497e9e5a975a804064dec068ce38960628 Mon Sep 17 00:00:00 2001 From: jokul Date: Sun, 12 Jul 2026 20:06:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E5=A4=B4=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=E5=92=8CCMake=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=80=82=E9=85=8D=E7=B3=BB=E7=BB=9Fdde-shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 7 ++++--- graphicsdriverapplet.cpp | 2 +- graphicsdriverapplet.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index de4cebb..35d1352 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,6 @@ set(CMAKE_AUTORCC ON) find_package(Qt6 REQUIRED COMPONENTS Widgets DBus Quick) find_package(Dtk6 REQUIRED COMPONENTS Widget Core) -find_package(dde-shell REQUIRED) add_library(dde-graphics-driver SHARED graphicsdriverapplet.h @@ -24,10 +23,10 @@ add_library(dde-graphics-driver SHARED target_include_directories(dde-graphics-driver PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} + /usr/include/dde-shell ) target_link_libraries(dde-graphics-driver PRIVATE - dde-shell-frame Qt6::Widgets Qt6::DBus Qt6::Quick @@ -35,4 +34,6 @@ target_link_libraries(dde-graphics-driver PRIVATE Dtk6::Core ) -ds_install_package(PACKAGE org.deepin.ds.graphics-driver TARGET dde-graphics-driver) +# 安装到dde-shell插件目录 +install(TARGETS dde-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) diff --git a/graphicsdriverapplet.cpp b/graphicsdriverapplet.cpp index ea0bc3a..ca4bc0b 100644 --- a/graphicsdriverapplet.cpp +++ b/graphicsdriverapplet.cpp @@ -3,7 +3,7 @@ // SPDX-License-Identifier: GPL-3.0-or-later #include "graphicsdriverapplet.h" -#include "pluginfactory.h" +#include #include #include diff --git a/graphicsdriverapplet.h b/graphicsdriverapplet.h index 0e84eba..79e0456 100644 --- a/graphicsdriverapplet.h +++ b/graphicsdriverapplet.h @@ -4,7 +4,7 @@ #pragma once -#include "applet.h" +#include #include #include