2014-01-25 17:35:06 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
project(hyperion-v4l2)
|
|
|
|
|
|
|
|
# find Qt4
|
|
|
|
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork)
|
|
|
|
|
|
|
|
include_directories(
|
2014-11-21 21:24:33 +01:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/protoserver
|
2014-01-25 17:35:06 +01:00
|
|
|
${PROTOBUF_INCLUDE_DIRS}
|
|
|
|
${QT_INCLUDES}
|
|
|
|
)
|
|
|
|
|
2014-02-19 21:52:37 +01:00
|
|
|
set(Hyperion_V4L2_QT_HEADERS
|
|
|
|
ScreenshotHandler.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_V4L2_HEADERS
|
2014-01-26 15:51:02 +01:00
|
|
|
VideoStandardParameter.h
|
2014-03-31 17:36:36 +02:00
|
|
|
PixelFormatParameter.h
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_V4L2_SOURCES
|
|
|
|
hyperion-v4l2.cpp
|
2014-02-19 21:52:37 +01:00
|
|
|
ScreenshotHandler.cpp
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|
|
|
|
|
2014-02-19 21:52:37 +01:00
|
|
|
QT4_WRAP_CPP(Hyperion_V4L2_MOC_SOURCES ${Hyperion_V4L2_QT_HEADERS})
|
|
|
|
|
2014-01-25 17:35:06 +01:00
|
|
|
add_executable(hyperion-v4l2
|
|
|
|
${Hyperion_V4L2_HEADERS}
|
|
|
|
${Hyperion_V4L2_SOURCES}
|
2014-02-19 21:52:37 +01:00
|
|
|
${Hyperion_V4L2_QT_HEADERS}
|
|
|
|
${Hyperion_V4L2_MOC_SOURCES}
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(hyperion-v4l2
|
2014-02-07 21:11:50 +01:00
|
|
|
v4l2-grabber
|
2014-01-25 17:35:06 +01:00
|
|
|
getoptPlusPlus
|
2014-01-26 15:51:02 +01:00
|
|
|
blackborder
|
2014-01-25 17:35:06 +01:00
|
|
|
hyperion-utils
|
2014-11-21 21:24:33 +01:00
|
|
|
protoserver
|
2014-01-25 17:35:06 +01:00
|
|
|
pthread
|
2014-02-19 21:52:37 +01:00
|
|
|
${QT_LIBRARIES}
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|