mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
22 lines
589 B
CMake
22 lines
589 B
CMake
|
# Define the current source locations
|
||
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
||
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/xcb)
|
||
|
|
||
|
find_package(XCB COMPONENTS SHM IMAGE RENDER RANDR REQUIRED)
|
||
|
find_package(Qt5Widgets REQUIRED)
|
||
|
find_package(Qt5X11Extras REQUIRED)
|
||
|
|
||
|
include_directories(${XCB_INCLUDE_DIRS})
|
||
|
|
||
|
FILE (GLOB XCB_SOURCES "${CURRENT_HEADER_DIR}/Xcb*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
||
|
|
||
|
add_library(xcb-grabber ${XCB_SOURCES})
|
||
|
|
||
|
target_link_libraries(xcb-grabber
|
||
|
hyperion
|
||
|
Qt5::X11Extras
|
||
|
Qt5::Widgets
|
||
|
${XCB_LIBRARIES}
|
||
|
)
|
||
|
|