<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hi, I´m working with ITK+MFC and now I will work with VTK too. I use cmake to compile all the aplication, and it´s good, but It don´t add the libraries ".lib" from VTK to the project, only the MFC archives and ITK libraries. I put in Cmake this. What variable can I use to add the .lib? because the .h files are included<br><br>PROJECT( ItkMFC )<br><br>ADD_DEFINITIONS(-D_AFXDLL)<br><br>SET(CMAKE_MFC_FLAG 1)<br><br><br>SET(ItkMFC_SRCS<br>&nbsp;&nbsp; StdAfx.cpp<br>&nbsp;&nbsp; ItkMFC.cpp<br>&nbsp;&nbsp; ItkMFC.rc<br>&nbsp;&nbsp; ItkMFCDoc.cpp<br>&nbsp;&nbsp; MainFrm.cpp<br>&nbsp;&nbsp; ItkMFCView.cpp<br>&nbsp;&nbsp; ItkPipeline.cxx<br>&nbsp;&nbsp; )<br><br>IF(WIN32)<br>&nbsp; LINK_LIBRARIES(<br>&nbsp;&nbsp;&nbsp; wsock32<br>&nbsp; )<br>ENDIF(WIN32)<br><br><br>FIND_PACKAGE(ITK)<br>IF(ITK_FOUND)<br>&nbsp;&nbsp; INCLUDE(${ITK_USE_FILE})<br>ELSE(ITK_FOUND)<br>&nbsp;&nbsp; MESSAGE(FATAL_ERROR<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build without ITK.&nbsp; Please set ITK_DIR.")<br>ENDIF(ITK_FOUND)<br><br>FIND_PACKAGE ( VTK)<br>IF ( VTK_FOUND)<br>INCLUDE( ${USE_VTK_FILE} )<br>ENDIF( VTK_FOUND)<br><br><br>ADD_EXECUTABLE(ItkMFC WIN32 ${ItkMFC_SRCS})<br>INSTALL_TARGETS(/bin ItkMFC)<br>TARGET_LINK_LIBRARIES(ItkMFC ${ITK_LIBRARIES} )<br><br><br><br /><hr />Comparte tus fotos con tus amigos. Más fácil con <a href='http://download.live.com' target='_new'>Windows Live</a></body>
</html>