ukui-screensaver/Common/CMakeLists.txt

33 lines
859 B
CMake

pkg_check_modules(GLIB REQUIRED glib-2.0)
find_package(X11 REQUIRED)
find_package(KF5WindowSystem)
find_package(KF5Wayland)
include_directories(
${Qt5Core_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
${Qt5DBus_INCLUDE_DIRS}
${GLIB2_INCLUDE_DIRS}
${KF5Wayland_LIBRARIES}
)
qt5_wrap_cpp(Common_SRC
autoresize.h
checkbutton.h
commonfunc.h
glibinterface.h
plasma-shell-manager.h
)
set(Common_SRC
${Common_SRC}
autoresize.cpp
checkbutton.cpp
commonfunc.cpp
glibinterface.cpp
plasma-shell-manager.cpp
)
add_library(Common STATIC ${Common_SRC})
target_link_libraries(Common Qt5::Core Qt5::DBus Qt5::Widgets Qt5::X11Extras ${GIOUNIX2_LIBRARIES} ${KF5Wayland_LIBRARIES} -lKF5WaylandClient -lKF5WaylandServer KF5::WindowSystem KF5::WaylandClient KF5::WaylandServer)