[vtkusers] Problem with vtk + qt + gdcm + visual studio 2010
Rodrigo Lovera
lobo.theslayer at gmail.com
Fri Nov 9 01:13:12 EST 2012
Hello everyone,
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.
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.
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
cmake_minimum_required(VERSION 2.6)
PROJECT(gdcmtry)
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
FIND_PACKAGE(GDCM REQUIRED)
INCLUDE(${GDCM_USE_FILE})
INCLUDE_DIRECTORIES(
${GDCM_SOURCE_DIR}/Utilities/VTK
)
ADD_EXECUTABLE(gdcmtry gdcmtry.cpp)
TARGET_LINK_LIBRARIES(gdcmtry vtkHybrid vtkWidgets vtkgdcm)
--
*Rodrigo Lovera Sandoval*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121109/b11723bd/attachment.htm>
More information about the vtkusers
mailing list