-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (37 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.16)
project(imwl LANGUAGES CXX C)
set(CMAKE_AUTOMOC ON)
find_package(PkgConfig REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Core Gui WaylandCompositor)
pkg_check_modules(xcb REQUIRED IMPORTED_TARGET xcb)
pkg_check_modules(xcb-xinput REQUIRED IMPORTED_TARGET xcb-xinput)
qt_add_executable(imwl
main.cpp
common.cpp common.h
Core.h
Compositor.cpp Compositor.h
TextInputManagerV3.cpp TextInputManagerV3.h
TextInputV3.cpp TextInputV3.h
InputMethodManagerV2.cpp InputMethodManagerV2.h
InputMethodV2.cpp InputMethodV2.h
InputMethodKeyboardGrabV2.cpp InputMethodKeyboardGrabV2.h
VirtualKeyboardManagerV1.cpp VirtualKeyboardManagerV1.h
VirtualKeyboardV1.cpp VirtualKeyboardV1.h
X11KeyboardGrabber.cpp X11KeyboardGrabber.h
)
qt6_generate_wayland_protocol_server_sources(imwl
FILES
${CMAKE_CURRENT_SOURCE_DIR}/misc/wayland-protocols/text-input-unstable-v3.xml
${CMAKE_CURRENT_SOURCE_DIR}/misc/wayland-protocols/input-method-unstable-v2.xml
${CMAKE_CURRENT_SOURCE_DIR}/misc/wayland-protocols/virtual-keyboard-unstable-v1.xml
)
target_link_libraries(imwl PUBLIC
Qt::Core
Qt::Gui
Qt::WaylandCompositor
PkgConfig::xcb
PkgConfig::xcb-xinput
)
install(TARGETS imwl
BUNDLE BUNDLE DESTINATION .
)