geopro/tests/spike/CMakeLists.txt

31 lines
1.2 KiB
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Spike S3: 真实样本 banded contour 离屏渲染(验证设计 §4.3 管线选型)
find_package(nlohmann_json CONFIG REQUIRED)
find_package(VTK REQUIRED COMPONENTS
CommonCore
CommonDataModel
CommonColor
FiltersGeometry
FiltersModeling
FiltersSources
ImagingCore
InteractionWidgets
RenderingOpenGL2
IOImage
)
add_executable(grid_contour_spike grid_contour_spike.cpp)
target_link_libraries(grid_contour_spike PRIVATE ${VTK_LIBRARIES} nlohmann_json::nlohmann_json)
vtk_module_autoinit(TARGETS grid_contour_spike MODULES ${VTK_LIBRARIES})
# 离屏渲染验证:用真实数据把剖面/帘面渲成 PNG肉眼核对方向与 2D/3D 差异。
add_executable(render_verify render_verify.cpp)
target_link_libraries(render_verify PRIVATE
geopro_render geopro_data geopro_core ${VTK_LIBRARIES})
vtk_module_autoinit(TARGETS render_verify MODULES ${VTK_LIBRARIES})
# 实测vtkImagePlaneWidget 纹理是否支持 texel alpha 透明(白化切片可行性)。
add_executable(slice_alpha_probe slice_alpha_probe.cpp)
target_link_libraries(slice_alpha_probe PRIVATE
geopro_render geopro_core ${VTK_LIBRARIES})
vtk_module_autoinit(TARGETS slice_alpha_probe MODULES ${VTK_LIBRARIES})