feat(pipeline): add pipeline header

This commit is contained in:
2026-03-10 19:02:04 +01:00
parent 07a6f1b3d8
commit 8b23d09ac5
6 changed files with 184 additions and 1 deletions

View File

@@ -9,8 +9,16 @@ project(
find_package(spdlog REQUIRED)
find_package(avcpp REQUIRED)
# ##############################################################################
add_library(mosh-me-lib STATIC
${PROJECT_SOURCE_DIR}/src/pipeline.cpp
)
target_link_libraries(mosh-me-lib PUBLIC avcpp::avcpp spdlog::spdlog)
target_compile_features(mosh-me-lib PUBLIC cxx_std_23)
target_include_directories(mosh-me-lib PUBLIC ${PROJECT_SOURCE_DIR}/include)
add_executable(mosh-me
${PROJECT_SOURCE_DIR}/app/mosh-me.cpp
)
@@ -30,7 +38,19 @@ install(TARGETS mosh-me mk-moshable)
################################################################################
if (BUILD_TESTING)
find_package(Catch2 REQUIRED)
add_executable(mosh-me_test
${PROJECT_SOURCE_DIR}/test/pipeline.cpp
)
target_link_libraries(mosh-me_test mosh-me-lib Catch2::Catch2WithMain)
endif()
################################################################################
if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES})
endif()