add_library(QHotkey qhotkey.h qhotkey.cpp qhotkey_p.h $<$:qhotkey_win.cpp> $<$:qhotkey_x11.cpp> ) target_include_directories(QHotkey INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ) target_link_libraries(QHotkey PUBLIC Qt${QT_VERSION_MAJOR}::Gui $<$:X11> )