cmake_minimum_required(VERSION 3.20)
project(cuframes_rtsp_source LANGUAGES CXX)

find_package(PkgConfig REQUIRED)
pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET
    libavformat
    libavcodec
    libavutil
)
find_package(CUDAToolkit REQUIRED)

add_executable(cuframes-rtsp-source main.cpp)
target_compile_features(cuframes-rtsp-source PRIVATE cxx_std_17)
target_compile_options(cuframes-rtsp-source PRIVATE -Wall -Wextra)
target_link_libraries(cuframes-rtsp-source
    PRIVATE
        cuframes
        PkgConfig::FFMPEG
        CUDA::cudart
)
