VTK_MODULE_INIT in 9.0.1 ?

Yeah, it’s more focused on how to use its APIs rather than on how its APIs work internally.

Once you have the WhatModulesVTK.py output (uncommenting some of the implementation modules if you need them), you can write a small project:

cmake_minimum_required(VERSION 3.13)
project(vtktest C CXX)

find_package(VTK) # see WhatModulesVTK.py output
add_library(foo dummy.cxx)
target_link_libraries(foo) # link what VTK libraries you want
vtk_module_autoinit(TARGETS foo MODULES …) # same VTK libraries as above

When you generate this project, there’s a header named vtkModuleAutoInit_<md5hash>.h in the build tree. This is the set of defines you need.