chore(app): keep only avcpp variant

This commit is contained in:
2025-11-23 21:07:27 +01:00
parent 2c045d4c73
commit 6e07b36f02
4 changed files with 70 additions and 236 deletions

View File

@@ -7,32 +7,19 @@ project(
LANGUAGES CXX)
find_package(spdlog REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET
libavcodec
libavformat
libavutil
)
find_package(avcpp REQUIRED)
# ##############################################################################
add_executable(mosh-me-2
${PROJECT_SOURCE_DIR}/app/mosh-me-2.cpp
add_executable(mosh-me
${PROJECT_SOURCE_DIR}/app/mosh-me.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_link_libraries(mosh-me avcpp::avcpp 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 mosh-me-2)
install(TARGETS mosh-me mosh-me)
################################################################################