[vtk-developers] Removing unreferenced examples
Ben Boeckel
ben.boeckel at kitware.com
Wed Oct 10 15:41:57 EDT 2018
On Wed, Oct 10, 2018 at 14:25:27 -0400, Sean McBride wrote:
> It certainly would be nice if it got built automagically, so as to
> keep API changes and whatnot from breaking it. But it's not a test,
> it's an example of an interactive application. Since it has its own
> CMakeLists.txt, isn't it just a matter of some higher level CMake
> stuff building it? I'm afraid my knowledge of CMake is limited to 'cd
> bin; cmake ../VTK; make install'. :)
As far as VTK is concerned, *building* the example *is* a test. If it
has tests, running them too would be great as well. Basically, the
command for the test should be:
ctest --build-and-test <source> <build> -- \
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" \
--test-command "${CMAKE_CTEST_COMMAND}"
--Ben
More information about the vtk-developers
mailing list