[vtkusers] VTK/Qt Project properties - additional includes and dependencies
John Drescher
drescherjm at gmail.com
Mon Mar 23 14:31:50 EDT 2009
On Mon, Mar 23, 2009 at 2:23 PM, Jim <jiksed at yahoo.com> wrote:
>
> Dear vtkusers,
>
> My VTK source code is in this directory: C:\Programs\vtk\source
> The output binary is in C:\Programs\vtk\vtkbin32.
> When I open this VTK examples in VS2008:
> C:\Programs\vtk\vtkbin32\Examples\All\GUI\Qt\Events\QtEvents.sln
> I noticed the following project properties generated by CMake:
>
> --- Additional Include Directories ----
>
> C:\Programs\vtk\vtkbin32;
> C:\Programs\vtk\vtkbin32\Common;
> C:\Programs\vtk\vtkbin32\Utilities;
> C:\Programs\vtk\vtkbin32\VolumeRendering;
> C:\Programs\vtk\vtkbin32\Rendering;
> C:\Programs\vtk\vtkbin32\GUISupport\MFC;
> C:\Programs\vtk\source\Infovis;
> C:\Programs\vtk\source\Views;
> C:\Programs\vtk\source\VolumeRendering;
> C:\Programs\vtk\source\Hybrid;
> C:\Programs\vtk\source\Widgets;
> C:\Programs\vtk\source\Rendering;
> C:\Programs\vtk\source\Rendering\Testing\Cxx;
> C:\Programs\vtk\source\IO;
> C:\Programs\vtk\source\Imaging;
> C:\Programs\vtk\source\Graphics;
> C:\Programs\vtk\source\GenericFiltering;
> C:\Programs\vtk\source\Filtering;
> C:\Programs\vtk\source\Common;
> C:\Programs\vtk\source\Utilities;
> C:\Programs\vtk\source\Common\Testing\Cxx;
> C:\Programs\vtk\vtkbin32\Utilities\DICOMParser;
> C:\Programs\vtk\source\Utilities\DICOMParser;
> C:\Programs\vtk\vtkbin32\Utilities\vtkfreetype\include;
> C:\Pro grams\vtk\source\Utilities\vtkfreetype\include;
> C:\Programs\vtk\vtkbin32\Utilities\vtknetcdf;
> C:\Programs\vtk\source\Utilities\vtknetcdf;
> C:\Programs\vtk\vtkbin32\Utilities\vtkexodus2\include;
> C:\Programs\vtk\source\Utilities\vtkexodus2\include;
> C:\Programs\vtk\vtkbin32\Utilities\MaterialLibrary;
> C:\Programs\vtk\source\Utilities\MaterialLibrary;
> C:\Programs\vtk\vtkbin32\Utilities\verdict;
> C:\Programs\vtk\source\Utilities\verdict;
> C:\Programs\vtk\source\GUISupport\Qt;
> C:\Programs\vtk\vtkbin32\GUISupport\Qt;
> C:\Programs\vtk\source\GUISupport\MFC;
> "C:\Program Files\Tcl\include";
> C:\Programs\Qt\4.4.3\include;
> C:\Programs\Qt\4.4.3\include\QtGui;
> C:\Programs\Qt\4.4.3\include\QtCore;
> C:\Programs\vtk\vtkbin32\Examples\All\GUI\Qt\Events;
> C:\Programs\vtk\source\Examples\GUI\Qt\Events;
>
> --- Additional Dependencies ---
>
> $(NOINHERIT)
> kernel32.lib
> user32.lib
> gdi32.lib
> winspool.lib
> shell32.lib
> ole32.lib
> oleaut32.lib
> uuid.lib
> comdlg32.lib
> advapi32.lib
> QVTK.lib
> C:\Programs\Qt\4.4.3\lib\QtGuid4.lib
> imm32.lib winmm.lib
> C:\Programs\Qt\4.4.3\lib\QtCored4.lib
> ws2_32.lib
> vtkRendering.lib
> vtkGraphics.lib
> vtkIO.lib
> vtkCommon.lib
> C:\Programs\Qt\4.4.3\lib\QtSqld4.lib
> C:\Programs\Qt\4.4.3\lib\QtCored4.lib
> vtkViews.lib vtkInfovis.lib
> vtkWidgets.lib vtkHybrid.lib
> vtkRendering.lib vtkGraphics.lib
> vtkverdict.lib vtkImaging.lib
> vtkftgl.lib vtkfreetype.lib
> opengl32.lib
> vtkIO.lib
> vtkFiltering.lib
> vtkCommon.lib
> vtkDICOMParser.lib
> vtkmetaio.lib
> comctl32.lib
> wsock32.lib
> vtksqlite.lib
> vtkpng.lib
> vtktiff.lib
> vtkjpeg.lib
> vtkexpat.lib
> vtksys.lib
> ws2_32.lib
> vfw32.lib
> vtkexoIIc.lib
> vtkNetCDF.lib
> vtklibxml2.lib
> vtkzlib.lib
>
> Do I really need all these additional includes and dependencies for all my
> own VS2008 projects?
No but it depends on what type of project you are building.
> Is there any overhead from these additional includes
> and dependencies such longer compile time and larger EXE files? May I
> specify these additional include directories in Options | VC++ Directories |
> Include Files?
>
Why not just let CMake handle this instead of you manually managing
this. CMake will generate the lib and include paths quite well and
make this whole process a lot simpler since you do not have to worry
about this.
John
More information about the vtkusers
mailing list