Files
GVFG_Standalone/CMakeLists.txt
T
Mark.lin 17fb9bfabd feat: align GVFG output with YUY2
- expose YUY2 across the public API, preview helper, backend, and GPU conversion paths while translating the legacy FPGA format value internally
- correct YUY2 chroma byte interpretation and update customer/internal documentation
- centralize the Standalone SDK version and expose it through gvfg_get_version
- show the SDK version in the sample and enable preview-window controls only after the first valid frame
- close and disable external preview windows when capture stops
2026-08-13 16:14:16 +08:00

36 lines
847 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(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}
)