mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
dd1adc4e90
Fix error in start script Former-commit-id: 6a02b865c86befa29e970a7465b256cde5335e95
33 lines
714 B
CMake
33 lines
714 B
CMake
# Define the current source locations
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/v4l2)
|
|
|
|
SET(V4L2_QT_HEADERS
|
|
${CURRENT_HEADER_DIR}/V4L2Grabber.h
|
|
${CURRENT_HEADER_DIR}/V4L2Wrapper.h
|
|
)
|
|
|
|
SET(V4L2_HEADERS
|
|
${CURRENT_HEADER_DIR}/VideoStandard.h
|
|
${CURRENT_HEADER_DIR}/PixelFormat.h
|
|
)
|
|
|
|
SET(V4L2_SOURCES
|
|
${CURRENT_SOURCE_DIR}/V4L2Grabber.cpp
|
|
${CURRENT_SOURCE_DIR}/V4L2Wrapper.cpp
|
|
)
|
|
|
|
QT4_WRAP_CPP(V4L2_HEADERS_MOC ${V4L2_QT_HEADERS})
|
|
|
|
add_library(v4l2-grabber
|
|
${V4L2_HEADERS}
|
|
${V4L2_SOURCES}
|
|
${V4L2_QT_HEADERS}
|
|
${V4L2_HEADERS_MOC}
|
|
)
|
|
|
|
target_link_libraries(v4l2-grabber
|
|
hyperion
|
|
${QT_LIBRARIES}
|
|
)
|