Files
GVFG_Standalone/sdk/giga_ioctl/CMakeLists.txt
T
Mark.lin b5b045a41a Refine giga_ioctl DLL boundary
Keep giga_ioctl as an independently maintained driver ABI DLL while simplifying its implementation around shared DeviceIoControl helpers and named request layouts.

Preserve the existing C exports, IOCTL values, GetLastError behavior, and GVFG capture ownership. Add concise maintainer guidance and document that capture state remains outside this module.

Validation: MSVC Release giga_ioctl target built successfully; dumpbin confirmed all 10 exports; git diff --check passed.
2026-08-25 09:40:00 +08:00

20 lines
550 B
CMake

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}
)