You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `itk_generate_factory_registration()` macro *must* be called **before** adding executables. It optionally takes the factory types to register. The CMake macro generates registration code for the IO modules and factory-enabled components from the modules loaded in `find_package()`. The meta-module *must* be linked to the target to include and enable the generated registration code.
272
+
273
+
In the above example, because `ITKImageIO` is provided as a required component, all available ImageIO modules are registered. Note that if no components are requested in `find_package()`, then all components are loaded and registered.
The `itk_generate_factory_registration()` macro must be called **before** adding executables. It generates registration
270
-
code to register loaded IO modules and factory-enabled components from the modules specified in `find_package()`. In this case, only GDCM and NRRD ImageIO are loaded. If no components are specified, then all available factories will be enabled during the registration.
284
+
In this example, the GDCM and NRRD ImageIO modules are explicitly loaded. Only the ImageIO factory type is registered and generated.
0 commit comments