I want to use an external module e.g. itkOBBLabelMap.
My approach to buidl ITK with the external module:
The following is a brief list of instructions to get a external module into ITK:
git clone https://github.com/blowekamp/itkOBBLabelMap.git
After this is rerun cmake (version 3.10) and configured the build with Module_ITKOBBLabelMap=ON.
Clicked Configure, then Generate.
When I opened the solution file in VS2015 the external module is listed as project ‘ITKOBBLabelMap-all’. I built the project. The build was successful (at least what VS said).
Once I open a file from the module. I got errors because of missing header files for ITK modules. For example in “itkBoundingBoxImageLabelMapFilter.h” “itkInPlaceLabelMapFilter.h” could not be found. I checked the project configurations and neither include paths (except from the standard paths are set) nor libs were set/linked.
When I set up an own project with the module the headers are found (CMakeLists.txt and testfile.cxx below). But if I want to build it the same errors are shown as before.
Unfortunately External Module Wikipage does not provide more information.
Maybe the CMakeLists file of the external module is not up-to-date or did i miss a step?
(I am using Windows 10, 64bit, cmake-gui, VS2015)
const unsigned int dim = 3;
typedef itk::Image<float, dim> ImageType;
typedef itk::OrientedBoundingBoxImageLabelMapFilter<ImageType, ImageType> BoundingBoxFilter;
int main(int argc, const char * argv)
auto boxFilter = BoundingBoxFilter::New();