LookingGlass/client/clipboards/X11/CMakeLists.txt

26 lines
471 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.0)
project(clipboard_X11 LANGUAGES C)
2019-03-28 01:42:41 +00:00
find_package(PkgConfig)
pkg_check_modules(CLIPBOARD_PKGCONFIG REQUIRED
x11
xfixes
)
add_library(clipboard_X11 STATIC
2019-03-28 01:42:41 +00:00
src/x11.c
)
target_link_libraries(clipboard_X11
2019-03-28 01:42:41 +00:00
${CLIPBOARD_PKGCONFIG_LIBRARIES}
)
target_include_directories(clipboard_X11
2019-03-28 01:42:41 +00:00
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE
src
${CLIPBOARD_PKGCONFIG_INCLUDE_DIRS}
)