-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (24 loc) · 815 Bytes
/
CMakeLists.txt
File metadata and controls
29 lines (24 loc) · 815 Bytes
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
cmake_minimum_required(VERSION 3.10)
project(mwb_client CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find OpenSSL for AES decryption/encryption matching PowerToys MWB
find_package(OpenSSL REQUIRED)
# Find libevdev for seamless Wayland/X11 input injection via Input Leap strategy
find_package(PkgConfig REQUIRED)
pkg_check_modules(EVDEV REQUIRED libevdev)
add_executable(mwb_client
src/main.cpp
src/CryptoHelper.cpp
src/InputManager.cpp
src/NetworkManager.cpp
)
target_include_directories(mwb_client PRIVATE src)
target_include_directories(mwb_client PRIVATE ${OPENSSL_INCLUDE_DIR})
target_include_directories(mwb_client PRIVATE ${EVDEV_INCLUDE_DIRS})
target_link_libraries(mwb_client PRIVATE
OpenSSL::SSL
OpenSSL::Crypto
${EVDEV_LIBRARIES}
pthread
)