* use vcpkg to install ffmpeg and build sdk from source, so no prebuild lib in hwcodec. * link ffmpeg in rustdesk directly, ffmpeg can be used as basic library. * for windows developers, `VCPKG_DEFAULT_HOST_TRIPLET` env need to be set to `x64-windows-static` during installation. Signed-off-by: 21pages <sunboeasy@gmail.com>
7 lines
283 B
Plaintext
7 lines
283 B
Plaintext
To use ffmpeg add the following to your CMake project:
|
|
|
|
find_package(FFMPEG REQUIRED)
|
|
target_include_directories(main PRIVATE ${FFMPEG_INCLUDE_DIRS})
|
|
target_link_directories(main PRIVATE ${FFMPEG_LIBRARY_DIRS})
|
|
target_link_libraries(main PRIVATE ${FFMPEG_LIBRARIES})
|