2014-11-21 21:24:33 +01:00
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/x11)
|
|
|
|
|
|
|
|
# Find X11
|
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
include_directories( ${X11_INCLUDES} )
|
2014-11-21 21:24:33 +01:00
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB X11_SOURCES "${CURRENT_HEADER_DIR}/X11*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2014-11-21 21:24:33 +01:00
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
add_library(x11-grabber ${X11_SOURCES} )
|
2014-11-21 21:24:33 +01:00
|
|
|
|
|
|
|
target_link_libraries(x11-grabber
|
|
|
|
hyperion
|
2017-08-04 23:08:15 +02:00
|
|
|
${X11_LIBRARIES}
|
|
|
|
${X11_Xrender_LIB}
|
2014-11-21 21:24:33 +01:00
|
|
|
)
|