mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

当前设备不支持特效就不显示多任务视图和右键插件 Log: 当前设备不支持特效就不显示多任务视图和右键插件 Task: https://pms.uniontech.com/zentao/task-view-30901.html Change-Id: Ief4b654831d20056072a160759b08a0c7af30f5c Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/875 Reviewed-by: <mailman@uniontech.com> Reviewed-by: wangwei <wangwei@uniontech.com> Reviewed-by: niecheng <niecheng@uniontech.com> Tested-by: <mailman@uniontech.com>
28 lines
812 B
CMake
28 lines
812 B
CMake
|
|
set(PLUGIN_NAME "multitasking")
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
# Sources files
|
|
file(GLOB SRCS "*.h" "*.cpp" "../../widgets/*.h" "../../widgets/*.cpp")
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
find_package(Qt5Svg REQUIRED)
|
|
find_package(Qt5DBus REQUIRED)
|
|
find_package(DtkWidget REQUIRED)
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
|
|
add_library(${PLUGIN_NAME} SHARED ${SRCS} resource.qrc)
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../)
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS} ../../interfaces)
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
|
${Qt5DBus_LIBRARIES}
|
|
${DtkWidget_LIBRARIES}
|
|
${Qt5Widgets_LIBRARIES}
|
|
${Qt5Svg_LIBRARIES}
|
|
)
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|