2017-08-12 07:55:32 +02:00
|
|
|
# this is only available on real pi
|
|
|
|
IF ( "${PLATFORM}" MATCHES rpi)
|
|
|
|
# Find the BCM-package (VC control)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
2013-08-15 21:11:02 +02:00
|
|
|
|
2019-07-09 23:07:31 +02:00
|
|
|
find_package(BCM REQUIRED)
|
|
|
|
include_directories(${BCM_INCLUDE_DIRS})
|
|
|
|
|
2017-08-12 07:55:32 +02:00
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
link_directories(${CMAKE_FIND_ROOT_PATH}/lib/arm-linux-gnueabihf)
|
2013-08-15 21:11:02 +02:00
|
|
|
|
2017-08-12 07:55:32 +02:00
|
|
|
add_executable(dispmanx2png
|
2013-08-15 21:11:02 +02:00
|
|
|
dispmanx2png.cpp)
|
|
|
|
|
2017-08-12 07:55:32 +02:00
|
|
|
target_link_libraries(dispmanx2png
|
2013-08-17 16:12:42 +02:00
|
|
|
dispmanx-grabber
|
2017-08-01 15:42:36 +02:00
|
|
|
Qt5::Gui)
|
2017-08-12 07:55:32 +02:00
|
|
|
ENDIF()
|