I faced this with the module Eigen3 and now with ITKTotalVariation.
I export the dependencies into the ./lib/cmake/ITK-5.0/Modules/Targets/TotalVariationTargets.cmake with a call of itk_module_target(${third_party_lib}) in the external module.
That target file is used by apps using the module, however, the python wrappings are ignoring it.
I haven't found any reference to the targets file in the CMake related to wrapping. It would be extremely helpful to have it!
The targets file is referenced in the module info file (i.e. lib/cmake/ITK-5.0/Modules/TotalVariation.cmake), so it would be a matter of reading it from there in the wrapping/generator module.
I faced this with the module Eigen3 and now with ITKTotalVariation.
I export the dependencies into the
./lib/cmake/ITK-5.0/Modules/Targets/TotalVariationTargets.cmakewith a call ofitk_module_target(${third_party_lib})in the external module.That target file is used by apps using the module, however, the python wrappings are ignoring it.
I haven't found any reference to the targets file in the CMake related to wrapping. It would be extremely helpful to have it!
The targets file is referenced in the module info file (i.e.
lib/cmake/ITK-5.0/Modules/TotalVariation.cmake), so it would be a matter of reading it from there in the wrapping/generator module.