2019-03-28 04:03:35 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2019-03-28 08:56:14 +00:00
|
|
|
project(clipboard_X11 LANGUAGES C)
|
2019-03-28 01:42:41 +00:00
|
|
|
|
|
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(CLIPBOARD_PKGCONFIG REQUIRED
|
|
|
|
x11
|
|
|
|
xfixes
|
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
add_library(clipboard_X11 STATIC
|
2019-03-28 01:42:41 +00:00
|
|
|
src/x11.c
|
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
target_link_libraries(clipboard_X11
|
2019-03-28 01:42:41 +00:00
|
|
|
${CLIPBOARD_PKGCONFIG_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
2019-03-28 08:56:14 +00:00
|
|
|
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}
|
|
|
|
)
|