[vtk-developers] CMake and VTK_LIBRARY_DIRS

Marco Nolden m.nolden at dkfz-heidelberg.de
Tue Dec 10 08:33:23 EST 2013


On 12/06/2013 03:50 PM, Brad King wrote:
> On 12/05/2013 06:14 PM, lgpasquale wrote:
>> FIND_PACKAGE(VTK REQUIRED)
>> INCLUDE(${VTK_USE_FILE})
>>
>> This defines VTK_INCLUDE_DIRS and VTK_LIBRARIES, but not VTK_LIBRARY_DIRS.
> No VTK_LIBRARY_DIRS are needed because the above code imports VTK targets.
Hi Brad,

in our MITK project, the linking works fine, but we use CMake's 
GetPrerequisites and BundleUtilities to build installers on Windows, 
Linux and MacOS. For this we used to constuct a search path for 
libraries (VTK 5.8). Any suggestions how to do this best with VTK 6?

- Marco




More information about the vtk-developers mailing list