2024-01-15 16:03:34 +08:00
|
|
|
pkg_check_modules(GLIB REQUIRED glib-2.0)
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
find_package(KF5WindowSystem)
|
2024-01-19 14:12:25 +08:00
|
|
|
find_package(KF5Wayland)
|
2024-01-15 16:03:34 +08:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${Qt5Core_INCLUDE_DIRS}
|
|
|
|
${Qt5Widgets_INCLUDE_DIRS}
|
|
|
|
${Qt5DBus_INCLUDE_DIRS}
|
|
|
|
${GLIB2_INCLUDE_DIRS}
|
|
|
|
${KF5Wayland_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2022-06-02 16:31:24 +08:00
|
|
|
qt5_wrap_cpp(Common_SRC
|
|
|
|
autoresize.h
|
|
|
|
checkbutton.h
|
|
|
|
commonfunc.h
|
2024-01-15 16:03:34 +08:00
|
|
|
glibinterface.h
|
|
|
|
plasma-shell-manager.h
|
2022-06-02 16:31:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(Common_SRC
|
|
|
|
${Common_SRC}
|
|
|
|
autoresize.cpp
|
|
|
|
checkbutton.cpp
|
|
|
|
commonfunc.cpp
|
2024-01-15 16:03:34 +08:00
|
|
|
glibinterface.cpp
|
|
|
|
plasma-shell-manager.cpp
|
2022-06-02 16:31:24 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(Common STATIC ${Common_SRC})
|
2024-01-19 14:12:25 +08:00
|
|
|
target_link_libraries(Common Qt5::Core Qt5::DBus Qt5::Widgets Qt5::X11Extras ${GIOUNIX2_LIBRARIES} ${KF5Wayland_LIBRARIES} -lKF5WaylandClient -lKF5WaylandServer KF5::WindowSystem KF5::WaylandClient KF5::WaylandServer)
|