mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 01:58:25 +00:00
26 lines
505 B
CMake
26 lines
505 B
CMake
|
cmake_minimum_required(VERSION 3.0)
|
||
|
project(clipboard_Wayland LANGUAGES C)
|
||
|
|
||
|
find_package(PkgConfig)
|
||
|
pkg_check_modules(CLIPBOARD_PKGCONFIG REQUIRED
|
||
|
wayland-client
|
||
|
)
|
||
|
|
||
|
add_library(clipboard_Wayland STATIC
|
||
|
src/wayland.c
|
||
|
)
|
||
|
|
||
|
target_link_libraries(clipboard_Wayland
|
||
|
${CLIPBOARD_PKGCONFIG_LIBRARIES}
|
||
|
lg_common
|
||
|
)
|
||
|
|
||
|
target_include_directories(clipboard_Wayland
|
||
|
PUBLIC
|
||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||
|
$<INSTALL_INTERFACE:include>
|
||
|
PRIVATE
|
||
|
src
|
||
|
${CLIPBOARD_PKGCONFIG_INCLUDE_DIRS}
|
||
|
)
|