Hello everyone,<div><br></div><div>Sorry to bother you with this noob question again, but I need some help to create the cmake file to add gdcm libs and includes specially the ones with vtkgdcm in a project im developing using qt and vtk in visual studio 2010 environment.</div>
<div><br></div><div>I've build vtk as shared libs on, so for my GDCM build I did the same as well as activate use_vtk. My big problem is that each time I try the solution of my project it keeps giving me linking errors. I'd appreaciate very much if u can help on how to maybe built correctly gdcm and principally in how to create my cmake file that calls and links the gdcm libs and includes without giving any trouple.</div>
<div><br></div><div>Thx again in advance. So far my CMakeLists file is the one i'll post except its only for vtk in visual studio not considering qt for the moment, even like that can't make it work</div><div><br>
</div><div><div>cmake_minimum_required(VERSION 2.6)</div><div> </div><div>PROJECT(gdcmtry)</div><div> </div><div>FIND_PACKAGE(VTK REQUIRED)</div><div>INCLUDE(${VTK_USE_FILE})</div><div><br></div><div>FIND_PACKAGE(GDCM REQUIRED)</div>
<div>INCLUDE(${GDCM_USE_FILE})</div><div><br></div><div>INCLUDE_DIRECTORIES(</div><div> ${GDCM_SOURCE_DIR}/Utilities/VTK</div><div> )</div><div> </div><div>ADD_EXECUTABLE(gdcmtry gdcmtry.cpp)</div><div>TARGET_LINK_LIBRARIES(gdcmtry vtkHybrid vtkWidgets vtkgdcm)</div>
<div><br></div>-- <br><b><font face="'comic sans ms', sans-serif" color="#000066">Rodrigo Lovera Sandoval</font></b><br>
</div>