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-59601.html Change-Id: Ic1a69ec3f21f222b24ab176dcacb8090800e768d
26 lines
866 B
CMake
26 lines
866 B
CMake
|
|
set(PLUGIN_NAME "onboard")
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
# Sources files
|
|
file(GLOB_RECURSE SRCS "*.h" "*.cpp" "../../widgets/*.h" "../../widgets/*.cpp")
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
find_package(Qt5DBus REQUIRED)
|
|
find_package(DtkWidget REQUIRED)
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
|
|
add_library(${PLUGIN_NAME} SHARED ${SRCS} onboard.qrc)
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../)
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC ${Qt5DBus_INCLUDE_DIRS}
|
|
${DFrameworkDBus_INCLUDE_DIRS}
|
|
../../interfaces)
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
|
${Qt5Widgets_LIBRARIES}
|
|
${DFrameworkDBus_LIBRARIES}
|
|
)
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|