- support only the new vfg100_0821c driver; legacy drivers and IOCTL contracts are intentionally unsupported - use one SDK handle per physical device with independent CH0/CH1 sessions and selectable event masks - expose Device Manager friendly names and remove redundant enumerated device indices - align active capture IOCTLs with the new driver while omitting unsupported OPEN_VIDEO/CLOSE_VIDEO calls - isolate IOCTL codes, request layouts, and DeviceIoControl calls in the new giga_ioctl DLL - block reads of pure write-only registers while preserving dual-semantics interrupt status reads - reduce duplicate signal register queries during open/start - add zero-copy/copy driver GetFrame timing in microseconds and show it in the preview status - update public/internal documentation for the revised lifecycle and channel APIs Validation: static searches and git diff --check only; build intentionally not run.
37 lines
880 B
CMake
37 lines
880 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/giga_ioctl)
|
|
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}
|
|
)
|