2016-02-24 14:34:19 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(hyperion-dispmanx)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
find_package(Qt5Widgets REQUIRED)
|
2016-02-24 16:03:21 +01:00
|
|
|
find_package(BCM REQUIRED)
|
2016-02-24 14:34:19 +01:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/protoserver
|
|
|
|
${QT_INCLUDES}
|
|
|
|
${BCM_INCLUDE_DIRS}
|
|
|
|
${PROTOBUF_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_Dispmanx_QT_HEADERS
|
|
|
|
DispmanxWrapper.h)
|
|
|
|
|
|
|
|
set(Hyperion_Dispmanx_HEADERS
|
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_Dispmanx_SOURCES
|
|
|
|
hyperion-dispmanx.cpp
|
|
|
|
DispmanxWrapper.cpp
|
|
|
|
)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
QT5_WRAP_CPP(Hyperion_Dispmanx_HEADERS_MOC ${Hyperion_Dispmanx_QT_HEADERS})
|
2016-02-24 14:34:19 +01:00
|
|
|
|
|
|
|
add_executable( ${PROJECT_NAME}
|
|
|
|
${Hyperion_Dispmanx_HEADERS}
|
|
|
|
${Hyperion_Dispmanx_SOURCES}
|
|
|
|
${Hyperion_Dispmanx_HEADERS_MOC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries( ${PROJECT_NAME}
|
|
|
|
getoptPlusPlus
|
|
|
|
blackborder
|
|
|
|
hyperion-utils
|
|
|
|
protoserver
|
|
|
|
dispmanx-grabber
|
|
|
|
${Dispmanx_LIBRARIES}
|
|
|
|
pthread
|
|
|
|
)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
qt5_use_modules(${PROJECT_NAME} Widgets Core Gui Network)
|
2016-03-10 12:22:44 +01:00
|
|
|
|
2016-05-24 19:56:43 +02:00
|
|
|
install ( TARGETS ${PROJECT_NAME} DESTINATION "bin" COMPONENT ambilight )
|