I am sorry for getting late to reply as I was busy with another projetc. I built VTK with
VTK_USE_GUISUPPORT and VTK_USE_MFC options checked. But I am still getting the same error in cmake as <span style>"</span><span style="font-family:arial,sans-serif;font-size:13px;color:rgb(255,0,0)">CMake Error at CMakeLists.txt:20 (VTK_ADD_LIBRARY):</span><p style>
<span style="color:rgb(255,0,0)">Unknown CMake command "VTK_ADD_LIBRARY"."</span></p><p style>Thanks.</p><br><div class="gmail_quote">On Thu, Mar 29, 2012 at 6:17 PM, edd cmaugo <span dir="ltr"><<a href="mailto:edcpwk@gmail.com">edcpwk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you checked VTK_USE_GUISUPPORT and VTK_USE_MFC when creating your<br>
solution with CMake ?<br>
<br>
>Date: Thu, 29 Mar 2012 13:32:35 +0530<br>
>From: Gishara Indeewarie <<a href="mailto:gish.777@gmail.com">gish.777@gmail.com</a>><br>
>Subject: [vtkusers] vtkMFC build error<br>
>To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<div class="HOEnZb"><div class="h5"><br>
>Hi all,<br>
<br>
>I tried to build vtkMFC project available in<br>
>vtk-5.8.0\VTK\Examples\GUI\Win32\vtkMFC.<br>
>When I built that I got errors as , can't find vtkMFCWindow.h<br>
>and vtkMFCConfigure.h files.<br>
>I included them in the projects taken from, vtk-5.8.0\VTK\GUISupport\MFC<br>
>folder.<br>
>After that I got an error message as, ">LINK : fatal error LNK1104: cannot<br>
>open file 'vtkMFC.lib".<br>
<br>
>When I search for the lib, I could not find it. I rebuilt the VTK.sln again<br>
>but the lib was not there.<br>
>So I guessed I may want to build the project<br>
>in, vtk-5.8.0\VTK\GUISupport\MFC as well.<br>
>But when I try to build it, I get a cmake error as , "CMake Error at<br>
>CMakeLists.txt:20 (VTK_ADD_LIBRARY):<br>
<br>
>Unknown CMake command "VTK_ADD_LIBRARY"."<br>
<br>
<br>
>Please help me.<br>
<br>
>Thanks.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>