forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ExternalModule: Improve target export to allow build against external…
… module This commit backports the ITK external module infrastructure to allow building against a collection of VTK module externally built. In a nutshell, config files [1] associated with external modules are now configured into the VTK module directory found in the VTK binary directory and they have to be explicitly listed as components when using `find_package(VTK COMPONENTS NameOfExternalModule REQUIRED)`. More specifically, it implements the following changes: * List of enabled VTK module is now configured into `VTKConfig.cmake` instead of being set based on the list of `*.cmake` found in the VTK module directory. This allows to only consider VTK modules enabled in the original VTK build directory when using signature `find_package(VTK REQUIRED)` in user code or VTK remote module. * Each external module is now associated with its own target file independent of `VTKTargets.cmake` [1] module config files: ``` lib/cmake/vtk-8.1/Modules/vtkNameOfExternalModule-Headers.cmake lib/cmake/vtk-8.1/Modules/vtkNameOfExternalModule.cmake lib/cmake/vtk-8.1/Modules/vtkNameOfExternalModuleHierarchy.txt ```
- Loading branch information
Showing
5 changed files
with
56 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters