2020-08-03 12:31:39 +02:00
|
|
|
# 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)
|
|
|
|
|
|
|
|
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
|
|
|
|
${XCB_LIBRARIES}
|
2021-11-16 18:12:56 +01:00
|
|
|
${QT_LIBRARIES}
|
2020-08-03 12:31:39 +02:00
|
|
|
)
|
|
|
|
|
2020-09-14 20:37:48 +02:00
|
|
|
if (NOT APPLE)
|
2021-11-16 18:12:56 +01:00
|
|
|
target_link_libraries(
|
|
|
|
xcb-grabber
|
|
|
|
)
|
2020-09-14 20:37:48 +02:00
|
|
|
endif()
|