2024-09-01 00:33:29 +08:00
|
|
|
|
|
|
|
add_library(QHotkey
|
|
|
|
qhotkey.h qhotkey.cpp
|
2024-09-05 22:05:05 +08:00
|
|
|
qhotkey_p.h
|
|
|
|
$<$<PLATFORM_ID:Windows>:qhotkey_win.cpp>
|
|
|
|
$<$<PLATFORM_ID:Linux>:qhotkey_x11.cpp>
|
2024-09-01 00:33:29 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(QHotkey
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(QHotkey
|
|
|
|
PUBLIC Qt${QT_VERSION_MAJOR}::Gui
|
2024-09-05 22:05:05 +08:00
|
|
|
$<$<PLATFORM_ID:Linux>:X11>
|
2024-09-01 00:33:29 +08:00
|
|
|
)
|