Hi,<br>I built two different VTK binaries with the same source (using CMake) - one 32bit, the other one 64bit. For example:<br><br>C:\WORK\LIBS\VTK_SRC_5.6.0<br>C:\WORK\LIBS\VTK_BIN_5.6.0_x32<br>C:\WORK\LIBS\VTK_BIN_5.6.0_x64<br>
<br>Then I built my own application with linking 32bit-version of VTK successfully. But now I want to build another application with linking 64bit-version. But that fails because CMake always links the 32bit-version?! I messed around with the CMakeLists.txt, VTK_DIR environment variable, FindVTK.cmake and so on - without success.<br>
The question is: How can I specify the path to VTK binaries in CMake (for my own)?<br>Here's the part of my CMakeLists.txt so far:<br><br><br>FIND_PACKAGE(VTK)<br>IF(NOT VTK_DIR)<br> MESSAGE(FATAL_ERROR "Please set VTK_DIR.")<br>
ENDIF(NOT VTK_DIR)<br>INCLUDE(${VTK_USE_FILE})<br>SET( VTK_LIBRARIES<br> ${VTK_LIBRARIES}<br> vtkHybrid<br> vtkVolumeRendering<br> vtkRendering<br> QVTK<br>)<br>