mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
* Address "SyntaxWarning: invalid escape sequence" * Correcttypo for CEC Blue button * Fix enablement when already open * Icons path corrected * Correct path and simplify command * Have enum class generalised * Address compile warnings * Update tinkerforce led_strip * Address compiler waring * Fix Install/Uninstall desktop- and icon file handling * Address "fatal: detected dubious ownership in repository" * platform fix * Test "fatal: detected dubious ownership in repository" * Update "fatal: detected dubious ownership in repository" * Update to Protobuf 25.1 * Update cmds with sudo * Update SEDU default baud rates * Replace deprecated Py_NoSiteFlag * Correct default config --------- Co-authored-by: Paulchen-Panther <16664240+Paulchen-Panther@users.noreply.github.com>
39 lines
1.4 KiB
CMake
39 lines
1.4 KiB
CMake
# Common cmake definition for external video grabber
|
|
|
|
set(MF-grabber mediafoundation)
|
|
set(V4L2-grabber v4l2)
|
|
|
|
if(ENABLE_MF)
|
|
project(mf-grabber)
|
|
set(grabber_project MF)
|
|
set(MediaFoundationSourceReaderCallBack ${CMAKE_SOURCE_DIR}/libsrc/grabber/video/mediafoundation/MFSourceReaderCB.h)
|
|
elseif(ENABLE_V4L2)
|
|
project(v4l2-grabber)
|
|
set(grabber_project V4L2)
|
|
endif()
|
|
|
|
add_library(${PROJECT_NAME}
|
|
${CMAKE_SOURCE_DIR}/include/grabber/video/EncoderThread.h
|
|
${CMAKE_SOURCE_DIR}/include/grabber/video/VideoWrapper.h
|
|
${CMAKE_SOURCE_DIR}/libsrc/grabber/video/EncoderThread.cpp
|
|
${CMAKE_SOURCE_DIR}/libsrc/grabber/video/VideoWrapper.cpp
|
|
${CMAKE_SOURCE_DIR}/include/grabber/video/${${grabber_project}-grabber}/${grabber_project}Grabber.h
|
|
${CMAKE_SOURCE_DIR}/libsrc/grabber/video/${${grabber_project}-grabber}/${grabber_project}Grabber.cpp
|
|
${MediaFoundationSourceReaderCallBack}
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME} hyperion)
|
|
|
|
# Add Turbo JPEG library
|
|
if(ENABLE_V4L2 OR ENABLE_MF)
|
|
find_package(TurboJPEG)
|
|
if(TURBOJPEG_FOUND)
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_TURBO_JPEG)
|
|
message(STATUS "Using Turbo JPEG library: ${TurboJPEG_LIBRARY}")
|
|
target_link_libraries(${PROJECT_NAME} ${TurboJPEG_LIBRARY})
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${TurboJPEG_INCLUDE_DIRS})
|
|
else ()
|
|
message(STATUS "Turbo JPEG library not found, MJPEG camera format won't work.")
|
|
endif()
|
|
endif()
|