Kylin/Fluent/QHotkey/CMakeLists.txt
2024-09-05 22:05:05 +08:00

17 lines
355 B
CMake

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