feat(build): add avcpp deps

This commit is contained in:
2025-11-23 19:57:29 +01:00
parent 6f3d503f74
commit bb29832f71
6 changed files with 114 additions and 3 deletions

View File

@@ -14,15 +14,25 @@ pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET
libavutil
)
find_package(avcpp REQUIRED)
# ##############################################################################
add_executable(mosh-me-2
${PROJECT_SOURCE_DIR}/app/mosh-me-2.cpp
)
target_link_libraries(mosh-me-2 avcpp::avcpp spdlog::spdlog)
target_compile_features(mosh-me-2 PUBLIC cxx_std_23)
target_include_directories(mosh-me-2 PRIVATE ${PROJECT_SOURCE_DIR}/include)
add_executable(mosh-me ${PROJECT_SOURCE_DIR}/app/mosh-me.cpp)
target_link_libraries(mosh-me PkgConfig::FFMPEG spdlog::spdlog)
target_compile_features(mosh-me PUBLIC cxx_std_23)
target_include_directories(mosh-me PRIVATE ${PROJECT_SOURCE_DIR}/include)
install(TARGETS mosh-me)
install(TARGETS mosh-me mosh-me-2)
################################################################################