function (qs_test name)
	add_executable(${name} ${ARGN})
	target_link_libraries(${name} PRIVATE
		Qt::Quick Qt::Test
		quickshell-wayland-idle-notify wlp-idle-notify
		quickshell-core quickshell-window quickshell-ui quickshell-io
	)
	add_test(NAME ${name} WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" COMMAND $<TARGET_FILE:${name}>)
endfunction()

qs_test(idlemonitor monitor.cpp)
