Commit 48db1860 authored by Ben Boeckel's avatar Ben Boeckel

Examples/Annotation: update to the new module system

parent bbf009a4
cmake_minimum_required(VERSION 3.3...3.12 FATAL_ERROR)
project(LabeledMesh)
find_package(VTK
COMPONENTS
FiltersGeneral
FiltersSources
RenderingCore
RenderingLabel)
if (NOT VTK_FOUND)
message("Skipping example: ${VTK_NOT_FOUND_MESSAGE}")
return ()
endif ()
PROJECT (LabeledMesh)
find_package(VTK REQUIRED)
vtk_module_config(VTK
vtkCommonCore
vtkCommonDataModel
vtkFiltersSources
vtkInteractionStyle
vtkRenderingLabel
vtkRenderingOpenGL2
)
include(${VTK_USE_FILE})
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${PROJECT_NAME}.cxx)
target_link_libraries(${PROJECT_NAME} ${VTK_LIBRARIES})
add_executable(LabeledMesh MACOSX_BUNDLE
LabeledMesh.cxx)
target_link_libraries(LabeledMesh
PRIVATE
${VTK_LIBRARIES})
vtk_module_autoinit(
TARGETS LabeledMesh
MODULES ${VTK_LIBRARIES})
......@@ -27,6 +27,7 @@ if (ANDROID)
elseif (APPLE_IOS)
else ()
add_example(AMR/Cxx)
add_example(Annotation/Cxx/LabeledMesh)
endif ()
if (FALSE)
......@@ -51,7 +52,6 @@ else()
endif()
if (NOT VTK_RENDERING_BACKEND STREQUAL "None")
add_subdirectory(Annotation/Cxx/LabeledMesh)
add_subdirectory(DataManipulation/Cxx)
add_subdirectory(Rendering/Cxx)
add_subdirectory(Tutorial/Step1/Cxx)
......
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