Commit 1e8c0d1e authored by Ben Boeckel's avatar Ben Boeckel

vtkModule: add CMake code for the new module system

The new module system is target-based rather than variable based. All
information is passed between targets using target properties and
leveraging CMake where possible such as for things like include
directories and linking libraries.

Where CMake doesn't handle things automatically, we store properties
ourselves. This includes whether a module needs autoinit logic (and a
function to handle adding the autoinit logic to a set of targets), which
headers to wrap in various languages, etc.
parent bd28b231
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
# Perform a reverse topological sort on the given LIST.
#
# topological_sort(my_list "MY_" "_EDGES")
# vtk_topological_sort(my_list "MY_" "_EDGES")
#
# LIST is the name of a variable containing a list of elements to be
# sorted in reverse topological order. Each element in the list has a
......@@ -23,7 +23,7 @@
# MY_b_EDGES
# MY_c_EDGES a b
#
# With the invocation of topological_sort shown above and these
# With the invocation of vtk_topological_sort shown above and these
# variables, the resulting reverse topological ordering will be b, a,
# c.
......@@ -62,7 +62,7 @@
# DEALINGS IN THE SOFTWARE.
##############################################################################
function(topological_sort LIST PREFIX SUFFIX)
function(vtk_topological_sort LIST PREFIX SUFFIX)
# Clear the stack and output variable
set(VERTICES "${${LIST}}")
set(STACK)
......
......@@ -46,9 +46,9 @@ test with a baseline image.
using a path relative to the test directory:
$ edit Some/Module/Testing/Cxx/CMakeLists.txt
ExternalData_add_test(VTKData
NAME ${vtk-module}Cxx-MyTest
COMMAND ${vtk-module}CxxTests MyTest
ExternalData_add_test("${_vtk_build_TEST_DATA_TARGET}"
NAME ${_vtk_build_test}Cxx-MyTest
COMMAND <VTK_MODULE_NAME>CxxTests MyTest
... -V DATA{../Data/Baseline/MyTest.png,:} ...
)
......
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