Skip to content

Commit

Permalink
Add xcb-keysyms and xcb-record dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Dec 9, 2020
1 parent f29f5e7 commit 1c2be0d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
1 change: 0 additions & 1 deletion external/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ else()
xcb-util
xcb-render-util
xcb-keysyms
xcb-record
ffi
)
if (DESKTOP_APP_USE_GLIBC_WRAPS)
Expand Down
2 changes: 2 additions & 0 deletions external/xcb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
add_library(external_xcb INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_xcb ALIAS external_xcb)

add_subdirectory(xcb_keysyms)
add_subdirectory(xcb_record)
add_subdirectory(xcb_screensaver)

if (DESKTOP_APP_USE_PACKAGED)
Expand Down
16 changes: 16 additions & 0 deletions external/xcb/xcb_keysyms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions external/xcb/xcb_record/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 1c2be0d

Please sign in to comment.