Commit 33819cb6 authored by Ben Boeckel's avatar Ben Boeckel

Examples/DataManipulation: update to the new module system

parent 22ef6404
......@@ -29,6 +29,7 @@ else ()
add_example(AMR/Cxx)
add_example(Annotation/Cxx/LabeledMesh)
add_example(Charts/Cxx)
add_example(DataManipulation/Cxx)
endif ()
if (FALSE)
......@@ -53,7 +54,6 @@ else()
endif()
if (NOT VTK_RENDERING_BACKEND STREQUAL "None")
add_subdirectory(DataManipulation/Cxx)
add_subdirectory(Rendering/Cxx)
add_subdirectory(Tutorial/Step1/Cxx)
add_subdirectory(Tutorial/Step2/Cxx)
......
cmake_minimum_required(VERSION 3.3...3.12 FATAL_ERROR)
project(DataManipulation)
PROJECT (DataManipulation)
find_package(VTK REQUIRED)
vtk_module_config(VTK
vtkCommonCore
vtkCommonDataModel
vtkFiltersGeometry
vtkInteractionStyle
vtkRenderingOpenGL2
)
include(${VTK_USE_FILE})
find_package(VTK
COMPONENTS
FiltersGeometry
RenderingCore)
if (NOT VTK_FOUND)
message("Skipping example: ${VTK_NOT_FOUND_MESSAGE}")
return ()
endif ()
add_executable(Arrays MACOSX_BUNDLE Arrays.cxx)
add_executable(Cube MACOSX_BUNDLE Cube.cxx)
add_executable(SGrid MACOSX_BUNDLE SGrid.cxx)
add_executable(RGrid MACOSX_BUNDLE RGrid.cxx)
target_link_libraries(Arrays ${VTK_LIBRARIES})
target_link_libraries(Cube ${VTK_LIBRARIES})
target_link_libraries(SGrid ${VTK_LIBRARIES})
target_link_libraries(RGrid ${VTK_LIBRARIES})
target_link_libraries(Arrays PRIVATE ${VTK_LIBRARIES})
target_link_libraries(Cube PRIVATE ${VTK_LIBRARIES})
target_link_libraries(SGrid PRIVATE ${VTK_LIBRARIES})
target_link_libraries(RGrid PRIVATE ${VTK_LIBRARIES})
vtk_module_autoinit(
TARGETS Arrays
Cube
SGrid
RGrid
MODULES ${VTK_LIBRARIES})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment