2014-01-25 17:35:06 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
project(hyperion-v4l2)
|
|
|
|
|
|
|
|
# add protocol buffers
|
|
|
|
find_package(Protobuf REQUIRED)
|
|
|
|
|
|
|
|
# find Qt4
|
|
|
|
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${PROTOBUF_INCLUDE_DIRS}
|
|
|
|
${QT_INCLUDES}
|
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_V4L2_HEADERS
|
|
|
|
ProtoConnection.h
|
2014-01-26 15:51:02 +01:00
|
|
|
ImageHandler.h
|
|
|
|
VideoStandardParameter.h
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_V4L2_SOURCES
|
|
|
|
hyperion-v4l2.cpp
|
|
|
|
ProtoConnection.cpp
|
2014-01-26 15:51:02 +01:00
|
|
|
ImageHandler.cpp
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(Hyperion_V4L2_PROTOS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../libsrc/protoserver/message.proto
|
|
|
|
)
|
|
|
|
|
|
|
|
protobuf_generate_cpp(Hyperion_V4L2_PROTO_SRCS Hyperion_V4L2_PROTO_HDRS
|
|
|
|
${Hyperion_V4L2_PROTOS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(hyperion-v4l2
|
|
|
|
${Hyperion_V4L2_HEADERS}
|
|
|
|
${Hyperion_V4L2_SOURCES}
|
|
|
|
${Hyperion_V4L2_PROTO_SRCS}
|
|
|
|
${Hyperion_V4L2_PROTO_HDRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
${PROTOBUF_LIBRARIES}
|
|
|
|
pthread
|
2014-02-07 09:20:00 +01:00
|
|
|
${QT_LIBRARIES}
|
2014-01-25 17:35:06 +01:00
|
|
|
)
|