mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Refactor/Create APT/DNF Repository (#1648)
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
# 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( ${X11_INCLUDES} )
|
||||
|
||||
if(APPLE)
|
||||
include_directories("/opt/X11/include")
|
||||
endif(APPLE)
|
||||
|
||||
FILE ( GLOB X11_SOURCES "${CURRENT_HEADER_DIR}/X11*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
||||
|
||||
add_library(x11-grabber ${X11_SOURCES} )
|
||||
add_library(x11-grabber
|
||||
${CMAKE_SOURCE_DIR}/include/grabber/x11/X11Grabber.h
|
||||
${CMAKE_SOURCE_DIR}/include/grabber/x11/X11Wrapper.h
|
||||
${CMAKE_SOURCE_DIR}/libsrc/grabber/x11/X11Grabber.cpp
|
||||
${CMAKE_SOURCE_DIR}/libsrc/grabber/x11/X11Wrapper.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(x11-grabber
|
||||
hyperion
|
||||
${X11_LIBRARIES}
|
||||
${X11_Xrandr_LIB}
|
||||
${X11_Xrender_LIB}
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
list(APPEND X11_INCLUDES "/opt/X11/include")
|
||||
endif()
|
||||
|
||||
target_include_directories(x11-grabber PUBLIC
|
||||
${X11_INCLUDES}
|
||||
)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include <utils/Logger.h>
|
||||
#include <grabber/X11Grabber.h>
|
||||
#include <grabber/x11/X11Grabber.h>
|
||||
|
||||
#include <xcb/randr.h>
|
||||
#include <xcb/xcb_event.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include <grabber/X11Wrapper.h>
|
||||
#include <grabber/x11/X11Wrapper.h>
|
||||
|
||||
X11Wrapper::X11Wrapper( int updateRate_Hz,
|
||||
int pixelDecimation,
|
||||
|
Reference in New Issue
Block a user