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/v4l2)
|
|
|
|
|
2017-08-01 15:42:36 +02:00
|
|
|
SET(V4L2_HEADERS
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/V4L2Grabber.h
|
|
|
|
${CURRENT_HEADER_DIR}/V4L2Wrapper.h
|
|
|
|
${CURRENT_HEADER_DIR}/VideoStandard.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SET(V4L2_SOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/V4L2Grabber.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/V4L2Wrapper.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(v4l2-grabber
|
|
|
|
${V4L2_HEADERS}
|
|
|
|
${V4L2_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(v4l2-grabber
|
|
|
|
hyperion
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|