<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> StdAfx.cpp<br> ItkMFC.cpp<br> ItkMFC.rc<br> ItkMFCDoc.cpp<br> MainFrm.cpp<br> ItkMFCView.cpp<br> ItkPipeline.cxx<br> )<br><br>IF(WIN32)<br> LINK_LIBRARIES(<br> wsock32<br> )<br>ENDIF(WIN32)<br><br><br>FIND_PACKAGE(ITK)<br>IF(ITK_FOUND)<br> INCLUDE(${ITK_USE_FILE})<br>ELSE(ITK_FOUND)<br> MESSAGE(FATAL_ERROR<br> "Cannot build without ITK. 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>