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)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${QT_INCLUDES}
|
|
|
|
${X11_INCLUDES}
|
|
|
|
)
|
2016-07-24 15:18:34 +02:00
|
|
|
SET(X11_QT_HEADERS
|
|
|
|
${CURRENT_HEADER_DIR}/X11Wrapper.h
|
|
|
|
)
|
2014-11-21 21:24:33 +01:00
|
|
|
|
|
|
|
SET(X11_HEADERS
|
|
|
|
${CURRENT_HEADER_DIR}/X11Grabber.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(X11_SOURCES
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/X11Grabber.cpp
|
2016-07-24 15:18:34 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/X11Wrapper.cpp
|
2014-11-21 21:24:33 +01:00
|
|
|
)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
QT5_WRAP_CPP(X11_HEADERS_MOC ${X11_QT_HEADERS})
|
2014-11-21 21:24:33 +01:00
|
|
|
|
|
|
|
add_library(x11-grabber
|
2016-05-26 23:44:27 +02:00
|
|
|
${X11_HEADERS}
|
|
|
|
${X11_SOURCES}
|
|
|
|
${X11_QT_HEADERS}
|
|
|
|
${X11_HEADERS_MOC}
|
2014-11-21 21:24:33 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(x11-grabber
|
|
|
|
hyperion
|
2016-07-24 15:18:34 +02:00
|
|
|
${X11_LIBRARIES}
|
|
|
|
${X11_Xrender_LIB}
|
|
|
|
${QT_LIBRARIES}
|
2014-11-21 21:24:33 +01:00
|
|
|
)
|