[vtkusers] Windows: Correctly linking the debug and release libraries in a CMake-based project
circass
circass at gmail.com
Wed Jan 27 05:39:25 EST 2010
If you are using visual studio you have to make the path settings for headers
from tools->options->project and solution -> c++ directories then change the
"Show Directories For" part to "Include Directories", you will add here the
headers files paths.
and for the project you have to add Debugging path and Linker Input paths by
right click project and select properties then select debugging and find
"Environment" and write there your paths..
for me the paths are like this.
Debugging part of the project
PATH=$(QTDIR)\bin;$(VTK)\bin\$(ConfigurationName);$(ITK)\bin\$(ConfigurationName);$(PATH)
my $(VTK) and $(ITK) is C:\VTK\Vtk-Win and C:\ITK\Itk-Win they are defined
in system environment.
note that you have to add debug libs for debug linker input and release libs
for release linker input.
Debug Release
qtmaind.lib qtmain.lib...
QtCored4.lib
QtGuid4.lib
.
vtkVolumeRendering.lib
vtkGraphics.lib
QVTK.lib
.
itkvnl_algo.lib
itkv3p_netlib.lib
.
.
etc.
Best Wishes
Circass
--
View this message in context: http://old.nabble.com/Windows%3A-Correctly-linking-the-debug-and-release-libraries-in-a-CMake-based-project-tp27325638p27335637.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list