Files
GVFG_Standalone/helpers/gvfg_preview/CMakeLists.txt
T
Mark.lin d2657a69cb Split GVFG customer API and preview helper
Refactor GVFG into a pull-based customer API with internal debug diagnostics in gvfg_debug.h. Move preview rendering into the separate gvfg_preview helper DLL and update the Qt sample to link it explicitly. Clean legacy callback/preview docs and removed SDK-internal render/log helper sources from the core GVFG DLL.
2026-06-15 17:06:12 +08:00

38 lines
724 B
CMake

project(gvfg_preview LANGUAGES CXX)
add_library(gvfg_preview SHARED
include/gvfg_preview.h
src/d3d_preview_pipeline.cpp
src/d3d_preview_pipeline.h
src/gvfg_preview.cpp
)
set_target_properties(gvfg_preview PROPERTIES
AUTOMOC OFF
AUTOUIC OFF
AUTORCC OFF
)
target_include_directories(gvfg_preview
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/sdk/gvfg/include
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
)
target_compile_definitions(gvfg_preview PRIVATE
GVFG_PREVIEW_BUILD
)
target_link_libraries(gvfg_preview PRIVATE
user32
dxgi
d3d11
D3DCompiler
)
if (MSVC)
target_compile_options(gvfg_preview PRIVATE /utf-8 /EHsc)
endif()