2014-02-07 21:11:50 +01: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)
|
|
|
|
|
2014-02-19 21:52:37 +01:00
|
|
|
SET(V4L2_QT_HEADERS
|
2014-02-07 21:11:50 +01:00
|
|
|
${CURRENT_HEADER_DIR}/V4L2Grabber.h
|
2014-02-23 22:39:23 +01:00
|
|
|
${CURRENT_HEADER_DIR}/V4L2Wrapper.h
|
2014-02-07 21:11:50 +01:00
|
|
|
)
|
|
|
|
|
2014-02-19 21:52:37 +01:00
|
|
|
SET(V4L2_HEADERS
|
2014-02-23 21:36:39 +01:00
|
|
|
${CURRENT_HEADER_DIR}/VideoStandard.h
|
2014-02-19 21:52:37 +01:00
|
|
|
)
|
|
|
|
|
2014-02-07 21:11:50 +01:00
|
|
|
SET(V4L2_SOURCES
|
|
|
|
${CURRENT_SOURCE_DIR}/V4L2Grabber.cpp
|
2014-02-23 22:39:23 +01:00
|
|
|
${CURRENT_SOURCE_DIR}/V4L2Wrapper.cpp
|
2014-02-07 21:11:50 +01:00
|
|
|
)
|
|
|
|
|
2014-02-19 21:52:37 +01:00
|
|
|
QT4_WRAP_CPP(V4L2_HEADERS_MOC ${V4L2_QT_HEADERS})
|
|
|
|
|
2014-02-07 21:11:50 +01:00
|
|
|
add_library(v4l2-grabber
|
|
|
|
${V4L2_HEADERS}
|
|
|
|
${V4L2_SOURCES}
|
2014-02-19 21:52:37 +01:00
|
|
|
${V4L2_QT_HEADERS}
|
|
|
|
${V4L2_HEADERS_MOC}
|
2014-02-07 21:11:50 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(v4l2-grabber
|
2014-02-19 21:52:37 +01:00
|
|
|
hyperion
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|