project(screensaver-capslock-helper)

pkg_check_modules(X11 REQUIRED x11)
pkg_check_modules(XCB REQUIRED xcb)

include_directories(
    ${X11_INCLUDE_DIRS}
    ${XCB_INCLUDE_DIRS}
    )

set(CMAKE_AUTOMOC ON)

qt5_wrap_cpp(bin_SRCS
        blackwindow.h
        )
set(bin_SRCS
    ${bin_SRCS}
    main.cpp
    blackwindow.cpp
    )

add_executable(screensaver-focus-helper ${bin_SRCS})
target_link_libraries(screensaver-focus-helper Qt5::Core  Qt5::Widgets Qt5::X11Extras     ${X11_LIBRARIES} ${XCB_LIBRARIES})

install(TARGETS
        screensaver-focus-helper
	DESTINATION lib/ukui-screensaver)
