2016-05-26 23:44:27 +02:00
|
|
|
# Find the BCM-package (VC control)
|
2017-08-12 07:55:32 +02:00
|
|
|
IF ( "${PLATFORM}" MATCHES rpi)
|
|
|
|
find_package(BCM REQUIRED)
|
|
|
|
include_directories(${BCM_INCLUDE_DIRS})
|
|
|
|
ELSE()
|
|
|
|
SET(BCM_INCLUDE_DIRS "")
|
|
|
|
SET(BCM_LIBRARIES "")
|
|
|
|
ENDIF()
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/dispmanx)
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB DispmanxGrabberSOURCES "${CURRENT_HEADER_DIR}/Dispmanx*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
add_library(dispmanx-grabber ${DispmanxGrabberSOURCES} )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
target_link_libraries(dispmanx-grabber
|
|
|
|
hyperion
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${BCM_LIBRARIES}
|
|
|
|
)
|