Separate the SDK and Qt sample build projects
Compared with f612cfd:
- Move the capture SDK, private IOCTL wrapper, and optional preview helper under GVFG_SDK with an independent top-level CMake project and version source.
- Move the Qt preview application into GVFG_Qt_Sample and consume prebuilt SDK DLLs and compiler-specific import libraries through imported CMake targets instead of compiling SDK sources as subdirectories.
- Resolve Qt Creator configuration-specific SDK build directories automatically, copy the three runtime DLLs beside the sample executable, and keep missing MSVC or MinGW artifacts as explicit configure errors.
- Update Release and Debug packaging scripts to read SDK and sample outputs separately, and update the repository build instructions for the two-project workflow.
- Preserve the pre-existing uncommitted device display-name suffix change outside this commit.
Validation: independent MSVC SDK configure/build and independent Qt MSVC sample configure/build passed; the sample build graph contains no SDK implementation sources; git diff --check passed. No MinGW link, runtime launch, capture, audio playback, or hardware validation was run.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
add_library(giga_ioctl SHARED
|
||||
README.md
|
||||
include/giga_ioctl.h
|
||||
src/giga_ioctl.cpp
|
||||
src/giga_ioctl_private.h
|
||||
)
|
||||
|
||||
target_include_directories(giga_ioctl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
target_compile_definitions(giga_ioctl PRIVATE GIGA_IOCTL_BUILD)
|
||||
set_target_properties(giga_ioctl PROPERTIES AUTOMOC OFF AUTOUIC OFF AUTORCC OFF)
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(giga_ioctl PRIVATE /utf-8 /EHsc)
|
||||
endif()
|
||||
|
||||
install(TARGETS giga_ioctl
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
Reference in New Issue
Block a user