2018-12-21 17:28:21 +08:00
|
|
|
|
|
|
|
set(PLUGIN_NAME "onboard")
|
|
|
|
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
|
|
|
|
# Sources files
|
2022-09-16 20:12:52 +00:00
|
|
|
file(GLOB_RECURSE SRCS "*.h"
|
|
|
|
"*.cpp"
|
2022-11-02 05:29:15 +00:00
|
|
|
"../../widgets/tipswidget.h"
|
|
|
|
"../../widgets/tipswidget.cpp"
|
2022-09-16 20:12:52 +00:00
|
|
|
"../../frame/qtdbusextended/*.h"
|
|
|
|
"../../frame/qtdbusextended/*.cpp")
|
2018-12-21 17:28:21 +08:00
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
find_package(Qt5DBus REQUIRED)
|
2022-03-01 09:49:32 +08:00
|
|
|
find_package(DtkGui REQUIRED)
|
2018-12-21 17:28:21 +08:00
|
|
|
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 ../)
|
2022-09-16 20:12:52 +00:00
|
|
|
|
2021-08-11 13:46:04 +08:00
|
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC ${Qt5DBus_INCLUDE_DIRS}
|
2022-09-16 20:12:52 +00:00
|
|
|
../../interfaces
|
2023-06-13 15:05:44 +08:00
|
|
|
../../frame/qtdbusextended)
|
2022-09-16 20:12:52 +00:00
|
|
|
|
2018-12-21 17:28:21 +08:00
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
2022-03-01 09:49:32 +08:00
|
|
|
${DtkWidget_LIBRARIES}
|
2023-03-22 20:11:24 +08:00
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::DBus
|
|
|
|
Dtk::Gui)
|
2018-12-21 17:28:21 +08:00
|
|
|
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|