<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I have used CMake and VC++ 2010 Express to build about four successful examples.<o:p></o:p></p><p class=MsoNormal>The following cMakeLists.txt file data worked fine for the Cylinder example.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>cmake_minimum_required(VERSION 2.6)<o:p></o:p></p><p class=MsoNormal>PROJECT(Cylinder)<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>FIND_PACKAGE(VTK REQUIRED)<o:p></o:p></p><p class=MsoNormal>INCLUDE(${VTK_USE_FILE})<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>ADD_EXECUTABLE(Cylinder Cylinder.cpp)<o:p></o:p></p><p class=MsoNormal>TARGET_LINK_LIBRARIES(Cylinder vtkHybrid)<o:p></o:p></p><p class=MsoNormal>================================================<o:p></o:p></p><p class=MsoNormal>Now I try to replicate the Cylinder example with a new cMakeLists.txt in a <o:p></o:p></p><p class=MsoNormal>new project folder called Cylinder2 using ( the folder contains Cylinder2.cpp and the cMakeLists.txt file and the bin directory <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>cmake_minimum_required(VERSION 2.6)<o:p></o:p></p><p class=MsoNormal>PROJECT(Cylinder2)<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>FIND_PACKAGE(VTK REQUIRED)<o:p></o:p></p><p class=MsoNormal>INCLUDE(${VTK_USE_FILE})<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>ADD_EXECUTABLE(Cylinder2 Cylinder2.cpp)<o:p></o:p></p><p class=MsoNormal>TARGET_LINK_LIBRARIES(Cylinder2 vtkHybrid)<o:p></o:p></p><p class=MsoNormal>===================================================<o:p></o:p></p><p class=MsoNormal>When I configure, here is what CMake reports:<o:p></o:p></p><p class=MsoNormal>Check for working C compiler using: Visual Studio 10<o:p></o:p></p><p class=MsoNormal>Check for working C compiler using: Visual Studio 10 -- works<o:p></o:p></p><p class=MsoNormal>Detecting C compiler ABI info<o:p></o:p></p><p class=MsoNormal>Detecting C compiler ABI info - done<o:p></o:p></p><p class=MsoNormal>Check for working CXX compiler using: Visual Studio 10<o:p></o:p></p><p class=MsoNormal>Check for working CXX compiler using: Visual Studio 10 -- works<o:p></o:p></p><p class=MsoNormal>Detecting CXX compiler ABI info<o:p></o:p></p><p class=MsoNormal>Detecting CXX compiler ABI info - done<o:p></o:p></p><p class=MsoNormal>CMake Error at D:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindVTK.cmake:135 (MESSAGE):<o:p></o:p></p><p class=MsoNormal> VTK not found. Set the VTK_DIR cmake cache entry to the directory<o:p></o:p></p><p class=MsoNormal> containing VTKConfig.cmake. This is either the root of the build tree, or<o:p></o:p></p><p class=MsoNormal> PREFIX/lib/vtk for an installation. For VTK 4.0, this is the location of<o:p></o:p></p><p class=MsoNormal> UseVTK.cmake. This is either the root of the build tree or<o:p></o:p></p><p class=MsoNormal> PREFIX/include/vtk for an installation.<o:p></o:p></p><p class=MsoNormal>Call Stack (most recent call first):<o:p></o:p></p><p class=MsoNormal> CMakeLists.txt:4 (FIND_PACKAGE)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Configuring incomplete, errors occurred!<o:p></o:p></p><p class=MsoNormal>-----------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>Nothing was moved so why is VTK not found.<o:p></o:p></p><p class=MsoNormal>Why would I need to Set the VTK_DIR cmake cache entry and how would I do it<o:p></o:p></p><p class=MsoNormal>since I didn't do it on the previous examples ?<o:p></o:p></p><p class=MsoNormal>What went wrong? <br>Any suggestions ?<o:p></o:p></p><p class=MsoNormal>Bob<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>