[vtkusers] How to specify the path to VTK in CMake?
Michael Xanadu
xanadu.michael at googlemail.com
Wed Jul 21 11:57:04 EDT 2010
Hi Andre,
thank you for your help. I tried what you told me, too. But guess what - it
doesn't work. Always the same, CMake links the weong libraries. I'm going
slightly mad. Can please post your whole CMakeLists.txt, so I can compare
the whole stuff to my own one?
With kind regards,
Michael
2010/7/21 André Prins <a.h.prins at gmail.com>
> Hi Michael,
>
> What Dave probably meant with was to explicitly specify a VTK_DIR
> variable to the find_package command. E.g. something like this:
>
> set( VTK_DIR "c:\work\libs\vtk_bin_5.6.0_x64" )
> find_package( VTK REQUIRED )
> include( ${VTK_USE_FILE} )
>
> Alternatively, you could specify a hint to find_package. E.g. in my
> projects...,
>
> find_package( VTK REQUIRED HINTS $ENV{VTKDIR} )
> include( ${VTK_USE_FILE} )
>
> I usually have severaly "batch-scripts or profiles" with my various
> development-environments... E.g. a 32-bit Vtk Release Static and a
> 64-bit Vtk Debug Release, etc. This way I can use a single
> CMakeLists.txt.
>
> Regards,
> Andre
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100721/375f4614/attachment.htm>
More information about the vtkusers
mailing list