ukui-screensaver/VirtualKeyboard/CMakeLists.txt

37 lines
873 B
CMake

find_package(Qt5 COMPONENTS Core Widgets REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
include_directories(${PROJECT_SOURCE_DIR}/Common)
qt5_add_resources(VirtualKeyboard_SRC
src/keyboard.qrc)
qt5_wrap_cpp(VirtualKeyboard_SRC
src/fakekeyboard.h
)
set(VirtualKeyboard_SRC
${VirtualKeyboard_SRC}
src/charsmorewidget.cpp
src/charswidget.cpp
src/dragwidget.cpp
src/kbbutton.cpp
src/kbtitle.cpp
src/letterswidget.cpp
src/numberswidget.cpp
src/virtualkeyboardwidget.cpp
src/x11keyboard.cpp
src/qtkeyboard.cpp
)
include_directories(
${Qt5Core_INCLUDE_DIRS}
${Qt5Widgets_INCLUDE_DIRS}
)
add_library(VirtualKeyboard STATIC ${VirtualKeyboard_SRC})
target_link_libraries(VirtualKeyboard Qt5::Core Qt5::Widgets Qt5::X11Extras Common)