ukui-screensaver/Common/CMakeLists.txt

32 lines
796 B
CMake
Raw Normal View History

pkg_check_modules(GLIB REQUIRED glib-2.0)
find_package(X11 REQUIRED)
find_package(KF5WindowSystem)
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)