2022-06-02 16:31:24 +08:00
|
|
|
find_package(Qt5 COMPONENTS Core Widgets REQUIRED)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
qt5_add_resources(VirtualKeyboard_SRC
|
|
|
|
src/keyboard.qrc)
|
|
|
|
|
2022-12-07 21:53:27 +08:00
|
|
|
qt5_wrap_cpp(VirtualKeyboard_SRC
|
|
|
|
src/vkstackedwidget.h
|
2023-04-12 13:44:06 +08:00
|
|
|
src/fakekeyboard.h
|
2022-12-07 21:53:27 +08:00
|
|
|
)
|
|
|
|
|
2022-06-02 16:31:24 +08:00
|
|
|
set(VirtualKeyboard_SRC
|
|
|
|
${VirtualKeyboard_SRC}
|
|
|
|
src/cursormonitor.cpp
|
|
|
|
src/keyboardwidget.cpp
|
|
|
|
src/virtualkeyboard.cpp
|
|
|
|
src/x11keyboard.cpp
|
2023-04-12 13:44:06 +08:00
|
|
|
src/qtkeyboard.cpp
|
2022-12-07 21:53:27 +08:00
|
|
|
src/vkstackedwidget.cpp
|
2022-06-02 16:31:24 +08:00
|
|
|
src/keyboard.qrc)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${Qt5Core_INCLUDE_DIRS}
|
|
|
|
${Qt5Widgets_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(VirtualKeyboard STATIC ${VirtualKeyboard_SRC})
|
2023-04-12 13:44:06 +08:00
|
|
|
target_link_libraries(VirtualKeyboard Qt5::Core Qt5::Widgets Qt5::X11Extras)
|