diff --git a/libsrc/grabber/x11/CMakeLists.txt b/libsrc/grabber/x11/CMakeLists.txt index 7228fdab..4d5914e5 100644 --- a/libsrc/grabber/x11/CMakeLists.txt +++ b/libsrc/grabber/x11/CMakeLists.txt @@ -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} ) diff --git a/src/hyperion-x11/CMakeLists.txt b/src/hyperion-x11/CMakeLists.txt index 56478b6b..b34d226c 100644 --- a/src/hyperion-x11/CMakeLists.txt +++ b/src/hyperion-x11/CMakeLists.txt @@ -10,6 +10,10 @@ include_directories( ${FLATBUFFERS_INCLUDE_DIRS} ) +if(APPLE) + include_directories("/opt/X11/include") +endif(APPLE) + set(Hyperion_X11_HEADERS X11Wrapper.h ) diff --git a/src/hyperiond/CMakeLists.txt b/src/hyperiond/CMakeLists.txt index 8284bfc5..5ec69820 100644 --- a/src/hyperiond/CMakeLists.txt +++ b/src/hyperiond/CMakeLists.txt @@ -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 ()