1
0
Fork 0

Add xcb-keysyms and xcb-record dependencies

This commit is contained in:
Ilya Fedin 2020-12-09 20:20:56 +04:00 committed by John Preston
parent f29f5e727f
commit 1c2be0df28
4 changed files with 34 additions and 1 deletions

View file

@ -380,7 +380,6 @@ else()
xcb-util xcb-util
xcb-render-util xcb-render-util
xcb-keysyms xcb-keysyms
xcb-record
ffi ffi
) )
if (DESKTOP_APP_USE_GLIBC_WRAPS) if (DESKTOP_APP_USE_GLIBC_WRAPS)

View file

@ -7,6 +7,8 @@
add_library(external_xcb INTERFACE IMPORTED GLOBAL) add_library(external_xcb INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_xcb ALIAS external_xcb) add_library(desktop-app::external_xcb ALIAS external_xcb)
add_subdirectory(xcb_keysyms)
add_subdirectory(xcb_record)
add_subdirectory(xcb_screensaver) add_subdirectory(xcb_screensaver)
if (DESKTOP_APP_USE_PACKAGED) if (DESKTOP_APP_USE_PACKAGED)

16
external/xcb/xcb_keysyms/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,16 @@
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(external_xcb_keysyms INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_xcb_keysyms ALIAS external_xcb_keysyms)
if (DESKTOP_APP_USE_PACKAGED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(XCB_KEYSYMS REQUIRED IMPORTED_TARGET xcb-keysyms)
target_link_libraries(external_xcb_keysyms INTERFACE PkgConfig::XCB_KEYSYMS)
else()
target_link_static_libraries(external_xcb_keysyms INTERFACE xcb-keysyms)
endif()

16
external/xcb/xcb_record/CMakeLists.txt vendored Normal file
View file

@ -0,0 +1,16 @@
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(external_xcb_record INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_xcb_record ALIAS external_xcb_record)
if (DESKTOP_APP_USE_PACKAGED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(XCB_RECORD REQUIRED IMPORTED_TARGET xcb-record)
target_link_libraries(external_xcb_record INTERFACE PkgConfig::XCB_RECORD)
else()
target_link_static_libraries(external_xcb_record INTERFACE xcb-record)
endif()