Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VTK
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Wittenburg
VTK
Commits
70ec3748
Commit
70ec3748
authored
Jan 17, 2018
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Examples/ImageProcessing: update to the new module system
parent
d2ce944d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
42 deletions
+59
-42
Examples/CMakeLists.txt
Examples/CMakeLists.txt
+1
-1
Examples/ImageProcessing/Cxx/CMakeLists.txt
Examples/ImageProcessing/Cxx/CMakeLists.txt
+58
-41
No files found.
Examples/CMakeLists.txt
View file @
70ec3748
...
...
@@ -35,6 +35,7 @@ else ()
add_example
(
GUI/Qt/ImageViewer
)
add_example
(
GUI/Qt/SimpleView
)
add_example
(
IO/Cxx
)
add_example
(
ImageProcessing/Cxx
)
endif
()
if
(
FALSE
)
...
...
@@ -48,7 +49,6 @@ else()
else
()
if
(
vtkTestingCore_LOADED
)
if
(
NOT VTK_RENDERING_BACKEND STREQUAL
"None"
)
add_subdirectory
(
ImageProcessing/Cxx
)
add_subdirectory
(
Medical/Cxx
)
add_subdirectory
(
Modelling/Cxx
)
add_subdirectory
(
MultiBlock/Cxx
)
...
...
Examples/ImageProcessing/Cxx/CMakeLists.txt
View file @
70ec3748
cmake_minimum_required
(
VERSION 3.3...3.12 FATAL_ERROR
)
project
(
ImageProcessing
)
find_package
(
VTK
OPTIONAL_COMPONENTS
TestingCore
TestingRendering
)
find_package
(
VTK
COMPONENTS
CommonSystem
IOImage
ImagingFourier
ImagingGeneral
ImagingSources
ImagingStatistics
ImagingStencil
InteractionStyle
RenderingCore
)
if
(
NOT VTK_FOUND
)
message
(
"Skipping example:
${
VTK_NOT_FOUND_MESSAGE
}
"
)
return
()
endif
()
PROJECT
(
ImageProcessing
)
find_package
(
VTK REQUIRED
)
vtk_module_config
(
VTK
vtkCommonCore
vtkFiltersCore
vtkFiltersModeling
vtkFiltersSources
vtkIOImage
vtkImagingCore
vtkImagingGeneral
vtkImagingStatistics
vtkImagingStencil
vtkInteractionStyle
vtkRenderingOpenGL2
vtkRenderingCore
vtkTestingCore
vtkTestingRendering
)
include
(
${
VTK_USE_FILE
}
)
add_executable
(
ImageSlicing MACOSX_BUNDLE
ImageSlicing.cxx
)
target_link_libraries
(
ImageSlicing
PRIVATE
${
VTK_LIBRARIES
}
)
add_executable
(
ImageSlicing MACOSX_BUNDLE ImageSlicing.cxx
)
target_link_libraries
(
ImageSlicing
${
VTK_LIBRARIES
}
)
add_executable
(
ImageBenchmark
ImageBenchmark.cxx
)
target_link_libraries
(
ImageBenchmark
PRIVATE
${
VTK_LIBRARIES
}
)
add_executable
(
ImageBenchmark ImageBenchmark.cxx
)
target_link_libraries
(
ImageBenchmark
${
VTK_LIBRARIES
}
)
add_executable
(
ImageBenchmarkDriver
ImageBenchmarkDriver.cxx
)
target_link_libraries
(
ImageBenchmarkDriver
PRIVATE
${
VTK_LIBRARIES
}
)
add_executable
(
ImageBenchmarkDriver ImageBenchmarkDriver.cxx
)
target_link_libraries
(
ImageBenchmarkDriver
${
VTK_LIBRARIES
}
)
vtk_module_autoinit
(
TARGETS ImageSlicing
ImageBenchmark
ImageBenchmarkDriver
MODULES
${
VTK_LIBRARIES
}
)
if
(
BUILD_TESTING
)
if
(
vtkTestingRendering_LOADED
)
if
(
BUILD_TESTING
)
if
(
TARGET VTK::TestingRendering
)
######## Regression Testing ########
set
(
vtk-example ImageProcessingExamples
)
set
(
_vtk_test_module ImageProcessingExamples
)
vtk_module_test_data
(
Data/headsq/quarter/,REGEX:.*
)
set
(
TestImageSlicing_ARGS
${
_vtk_build_TEST_DATA_DIRECTORY
}
/Data/headsq/quarter
)
set
(
TestImageBenchmark_ARGS
"--threads"
"2"
"--filter"
"resize:kernelsize=4"
)
vtk_add_test_cxx
(
${
vtk-example
}
CxxTests tests
vtk_add_test_cxx
(
ImageProcessingExamples
CxxTests tests
TestImageBenchmark.cxx,NO_VALID,NO_DATA,NO_OUTPUT
TestImageSlicing.cxx
)
vtk_test_cxx_executable
(
${
vtk-example
}
CxxTests tests
vtk_test_cxx_executable
(
ImageProcessingExamples
CxxTests tests
RENDERING_FACTORY
)
endif
()
endif
()
endif
()
endif
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment