<div dir="ltr"><div class="">
            <p>For anyone who ever touches the same problem, here's the 
final solution. Build "ALL_BUILD" in the GDCM solution, then integrate 
GDCM libs in your CMakeLists.txt following way:</p><br>FIND_PACKAGE(GDCM REQUIRED)<br>    IF(GDCM_FOUND)<br>        INCLUDE(${GDCM_USE_FILE})<br>        SET(GDCM_LIBRARIES <br>            gdcmcharls<br>            gdcmCommon<br>
            gdcmDICT<br>            gdcmDSED<br>            gdcmexpat<br>            gdcmgetopt<br>            gdcmIOD<br>            gdcmjpeg12<br>            gdcmjpeg16<br>            gdcmjpeg8<br>            gdcmMEXD<br>
            gdcmMSFF<br>            gdcmopenjpeg<br>            gdcmzlib<br>            socketxx<br>            vtkgdcm<br>            Rpcrt4)<br>    ELSE(GDCM_FOUND)<br>        MESSAGE(FATAL_ERROR "Cannot find GDCM, did you set GDCM_DIR?")<br>
    ENDIF(GDCM_FOUND)<br></div><br><br><br><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Michael Xanadu</b> <span dir="ltr"><<a href="mailto:xanadu.michael@googlemail.com">xanadu.michael@googlemail.com</a>></span><br>
Date: 2014/1/15<br>Subject: VTK and GDCM building problem<br>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br><br><br><div dir="ltr">Hi friends,<br><div><br>I developed a project using CMake 2.8.12.1, Visual Studio 2010, GDCM 2.4.1 and VTK 5.6.0. I successfully compiled VTK and now  I have a problem concerning compiling GDCM with support of VTK. I need to enable "GDCM_USE_VTK" in the CMake options of  GDCM. That option leads to a compiler error when I try to build the "INSTALL" subproject in the GDCM solution:<br>

<br>CMake Error at cmake_install.cmake:31 (FILE): file INSTALL cannot find "D:/Libs/VTK_5.6.0/BIN/bin/vtkCommon.dll".<br><br>I took a look in the VTK directory and found out that the path mentioned above does not exists. Instead the dll is located in:<br>

<br>D:\Libs\VTK_5.6.0\BIN\bin\Release\vtkCommon.dll or<br>D:\Libs\VTK_5.6.0\BIN\bin\Debug\vtkCommon.dll<br><br>That means GDCM solution does not know the dll is located in a special debug or release folder. If I disable "GDCM_USE_VTK" everything works. But I do need the VTK dll for GDCM.<br>

Any thoughts?<br><br>Thank you,<br>Michael<br></div></div>
</div><br></div>