fix: OSX add x11 new include path (#802)

This commit is contained in:
SJunkies 2020-05-25 21:46:25 +02:00 committed by GitHub
parent 3f68e55d1a
commit e1288a2649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,10 @@ 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} )

View File

@ -10,6 +10,10 @@ include_directories(
${FLATBUFFERS_INCLUDE_DIRS}
)
if(APPLE)
include_directories("/opt/X11/include")
endif(APPLE)
set(Hyperion_X11_HEADERS
X11Wrapper.h
)

View File

@ -77,6 +77,9 @@ if (ENABLE_AMLOGIC)
endif ()
if (ENABLE_X11)
if(APPLE)
include_directories("/opt/X11/include")
endif(APPLE)
target_link_libraries(hyperiond x11-grabber)
endif ()