[vtkusers] find_package( ITK ) overrides ${VTK_LIBRARIES} from find_package( VTK )
Pablo Hernández
pablo.hernandez.cerdan at outlook.com
Mon Dec 1 23:50:56 EST 2014
I have compiled ITK with the use_vtk option. And now ITK overrides the VTK_LIBRARIES, with a really small list of libraries.
find_package(ITK 4.5 REQUIRED)
message (status "** ITK FOUND: USE_FILES ${ITK_USE_FILE}")
message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")
message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}")
find_package(VTK 6.2 REQUIRED)
message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")
message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}")
Output:
status** ITK FOUND: USE_FILES /home/phc/Software/ITK/install-debug-nocuda-v461/lib/cmake/ITK-4.7/UseITK.cmake
status** VTK FOUND: USE_FILES /home/phc/Software/VTK/installation/qt5-git/lib/cmake/vtk-6.2/UseVTK.cmake
status** VTK FOUND: VTK_LIBRARIES vtkCommonCore;vtksys;vtkRenderingCore;vtkCommonExecutionModel;
vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;
vtkCommonTransforms;vtkFiltersExtraction;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;
vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingOpenGL;
vtkImagingHybrid;vtkIOImage;vtkDICOMParser;vtkIOCore;vtkzlib;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkRenderingFreeType;
vtkfreetype;vtkftgl;vtkInteractionStyle;vtkImagingSources
status** VTK FOUND: USE_FILES /home/phc/Software/VTK/installation/qt5-git/lib/cmake/vtk-6.2/UseVTK.cmake
status** VTK FOUND: VTK_LIBRARIES vtkCommonCore;vtksys;vtkRenderingCore;vtkCommonExecutionModel;
vtkCommonDataModel;vtkCommonMath;vtkCommonMisc;vtkCommonSystem;
vtkCommonTransforms;vtkFiltersExtraction;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;
vtkFiltersStatistics;vtkImagingFourier;vtkImagingCore;vtkalglib;vtkFiltersGeometry;vtkFiltersSources;vtkRenderingOpenGL;
vtkImagingHybrid;vtkIOImage;vtkDICOMParser;vtkIOCore;vtkzlib;vtkmetaio;vtkjpeg;vtkpng;vtktiff;vtkRenderingFreeType;
vtkfreetype;vtkftgl;vtkInteractionStyle;vtkImagingSources
--Same output TWICE ...--
If I find VTK first and then ITK I got the same results.
But if I don't find ITK, ie. with VTK alone I get the triple amount of libraries, and I need those libraries to compile my code.
Is this a bug in ITK (or cmake, or VTK) or am I doing something wrong in my CMakeLists.txt?
find_package(VTK 6.2 REQUIRED)
message (status "** VTK FOUND: USE_FILES ${VTK_USE_FILE}")
message (status "** VTK FOUND: VTK_LIBRARIES ${VTK_LIBRARIES}")
Output:
status** VTK FOUND: USE_FILES /home/phc/Software/VTK/installation/qt5-git/lib/cmake/vtk-6.2/UseVTK.cmake
status** VTK FOUND: VTK_LIBRARIES vtkIOMPIImage;vtkIOImage;vtkCommonDataModel;
vtkCommonMath;vtkCommonCore;vtksys;vtkCommonMisc;vtkCommonSystem;
vtkCommonTransforms;vtkCommonExecutionModel;vtkDICOMParser;vtkIOCore;vtkzlib;vtkmetaio;vtkjpeg;
vtkpng;vtktiff;vtkParallelMPI;vtkParallelCore;vtkIOLegacy;vtkfreetype;vtkIOVideo;vtkImagingColor;vtkImagingCore;
vtkRenderingLIC;vtkIOXML;vtkIOGeometry;vtkjsoncpp;vtkIOXMLParser;vtkexpat;vtkImagingSources;vtkRenderingOpenGL;
vtkImagingHybrid;vtkRenderingCore;vtkFiltersExtraction;vtkFiltersCore;vtkFiltersGeneral;vtkCommonComputationalGeometry;
vtkFiltersStatistics;vtkImagingFourier;vtkalglib;vtkFiltersGeometry;vtkFiltersSources;vtkInteractionStyle;vtkRenderingQt;
vtkFiltersTexture;vtkGUISupportQt;vtkRenderingLabel;vtkRenderingFreeType;vtkftgl;vtkRenderingContext2D;vtkViewsQt;
vtkViewsInfovis;vtkChartsCore;vtkCommonColor;vtkInfovisCore;vtkFiltersImaging;vtkImagingGeneral;vtkFiltersModeling;
vtkInfovisLayout;vtkViewsCore;vtkInteractionWidgets;vtkFiltersHybrid;vtkRenderingAnnotation;vtkRenderingVolume;vtkDomainsChemistry;
vtkIOParallel;vtkFiltersParallel;vtkIONetCDF;vtkNetCDF;vtkNetCDF_cxx;vtkhdf5_hl;vtkhdf5;vtkexoIIc;vtklibxml2;vtkRenderingFreeTypeOpenGL;
vtkTestingRendering;vtkFiltersProgrammable;vtkRenderingGL2PS;vtkRenderingContextOpenGL;vtkgl2ps;vtkFiltersHyperTree;vtkIOMPIParallel;
vtkIOMovie;vtkIOExodus;vtkTestingIOSQL;vtkIOSQL;vtksqlite;vtkFiltersSelection;vtkFiltersVerdict;verdict;vtkIOMINC;vtkImagingStencil;vtkInteractionImage;
vtkIOLSDyna;vtkRenderingLOD;vtkFiltersParallelImaging;vtkIOPLY;vtkViewsGeovis;vtkGeovisCore;vtkproj4;vtkRenderingImage;vtkIOInfovis;vtkIOEnSight;
vtkRenderingVolumeOpenGL;vtkImagingStatistics;vtkFiltersFlowPaths;vtkIOParallelNetCDF;vtkIOAMR;vtkFiltersAMR;vtkViewsContext2D;
vtkFiltersParallelGeometry;vtkIOParallelXML;vtkIOExport;vtkGUISupportQtSQL;vtkInfovisBoostGraphAlgorithms;vtkFiltersParallelMPI;
vtkGUISupportQtWebkit;vtkGUISupportQtOpenGL;vtkFiltersSMP;vtkImagingMorphological;vtkIOImport;vtkTestingGenericBridge;
vtkImagingMath;vtkFiltersGeneric;vtkRenderingVolumeAMR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141202/9aa6aa91/attachment.html>
More information about the vtkusers
mailing list