LookingGlass/client/clipboard/CMakeLists.txt
2019-03-28 12:42:41 +11:00

26 lines
455 B
CMake

cmake_minimum_required(VERSION 3.6)
project(clipboard LANGUAGES C)
find_package(PkgConfig)
pkg_check_modules(CLIPBOARD_PKGCONFIG REQUIRED
x11
xfixes
)
add_library(clipboard STATIC
src/x11.c
)
target_link_libraries(clipboard
${CLIPBOARD_PKGCONFIG_LIBRARIES}
)
target_include_directories(clipboard
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE
src
${CLIPBOARD_PKGCONFIG_INCLUDE_DIRS}
)