<div><div class="gmail_quote">On Thu, Jan 20, 2011 at 9:56 PM, Wei Sun <span dir="ltr">&lt;<a href="mailto:sunweimail@foxmail.com">sunweimail@foxmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear All,<br><br>I created a new project in vs2010 and try to use ITK in this project. However, the necessary .h files by ITK are not included in my project. How can I add all the external .h files which are required by ITK to my own project?<br>
The following is the two situations with and without these external .h files.<br><br> 
<img src="?ui=2&amp;ik=93801aabdc&amp;view=att&amp;th=12da681134ce9e38&amp;attid=0.0.2&amp;disp=emb&amp;zw"><img src="?ui=2&amp;ik=93801aabdc&amp;view=att&amp;th=12da681134ce9e38&amp;attid=0.0.1&amp;disp=emb&amp;zw"><br>
<br>Thanks in advance!<br><br>Best regards,<br><font color="#888888">Wei Sun<br></font></blockquote><div><br></div><div>You need to use CMake.</div><div><br></div><div>You can get an example CMakeLists.txt file from any of the examples here: <a href="http://www.itk.org/Wiki/ITK/Examples">http://www.itk.org/Wiki/ITK/Examples</a></div>
<div><br></div><div>Page 29 here shows how to use it to link your project to ITK:</div><div><a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=2&amp;ved=0CB8QFjAB&amp;url=http%3A%2F%2Fwww.itk.org%2FCourseWare%2FTraining%2FGettingStarted-I.pdf&amp;rct=j&amp;q=itk%20cmake&amp;ei=1vk4TZCrCJPfgQfvm9jyCA&amp;usg=AFQjCNFxT_AcbJl5TOtDlPfoiPIR6k_RYQ">http://www.google.com/url?sa=t&amp;source=web&amp;cd=2&amp;ved=0CB8QFjAB&amp;url=http%3A%2F%2Fwww.itk.org%2FCourseWare%2FTraining%2FGettingStarted-I.pdf&amp;rct=j&amp;q=itk%20cmake&amp;ei=1vk4TZCrCJPfgQfvm9jyCA&amp;usg=AFQjCNFxT_AcbJl5TOtDlPfoiPIR6k_RYQ</a></div>
<div><br></div><div>You can learn the idea of CMake from the &quot;CMake&quot; presentation here: <a href="http://www.vtk.org/Wiki/VTK/Presentations">http://www.vtk.org/Wiki/VTK/Presentations</a></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div>Good luck,<br><br></div><div>David </div></div></div>