Files
GVFG_Standalone/CMakeLists.txt
T
Mark.lin aad8419c2a Improve capture startup, frame loss reporting, and preview diagnostics
- defer DMA capture until the first frame reader is waiting
- deliver FIFO frames in sequence order and overwrite the oldest unread frame
  when the three-slot FIFO is full
- report known frame loss through GVFG_EVENT_FRAME_LOSS and runtime statistics
- replace the enum-only event API with the extensible gvfg_event_t structure
- expose per-handle public error details
- add preview GPU resource preparation before capture starts
- move GPU preview timing from periodic logs to the status display
- remove the redundant stream descriptor channel field
- reorganize customer and internal documentation
- add a complete customer API reference
2026-08-12 17:30:56 +08:00

38 lines
923 B
CMake

cmake_minimum_required(VERSION 3.16)
project(gvfg_standalone VERSION 0.1.0 LANGUAGES CXX)
include(GNUInstallDirs)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(GVFG_SDK_VERSION "${PROJECT_VERSION}" CACHE STRING "GVFG SDK version")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
option(BUILD_GVFG_SAMPLES "Build GVFG customer samples" ON)
if (NOT WIN32)
message(FATAL_ERROR "GVFG currently supports Windows only.")
endif()
add_subdirectory(sdk/gvfg)
add_subdirectory(helpers/gvfg_preview)
if (BUILD_GVFG_SAMPLES)
add_subdirectory(samples/gvfg_qt_preview)
endif()
install(FILES
docs/GVFG_CUSTOMER_API.md
docs/GVFG_CUSTOMER_API_REFERENCE.md
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)