<div><div class="gmail_quote">On Thu, Jan 20, 2011 at 9:56 PM, Wei Sun <span dir="ltr"><<a href="mailto:sunweimail@foxmail.com">sunweimail@foxmail.com</a>></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&ik=93801aabdc&view=att&th=12da681134ce9e38&attid=0.0.2&disp=emb&zw"><img src="?ui=2&ik=93801aabdc&view=att&th=12da681134ce9e38&attid=0.0.1&disp=emb&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&source=web&cd=2&ved=0CB8QFjAB&url=http%3A%2F%2Fwww.itk.org%2FCourseWare%2FTraining%2FGettingStarted-I.pdf&rct=j&q=itk%20cmake&ei=1vk4TZCrCJPfgQfvm9jyCA&usg=AFQjCNFxT_AcbJl5TOtDlPfoiPIR6k_RYQ">http://www.google.com/url?sa=t&source=web&cd=2&ved=0CB8QFjAB&url=http%3A%2F%2Fwww.itk.org%2FCourseWare%2FTraining%2FGettingStarted-I.pdf&rct=j&q=itk%20cmake&ei=1vk4TZCrCJPfgQfvm9jyCA&usg=AFQjCNFxT_AcbJl5TOtDlPfoiPIR6k_RYQ</a></div>
<div><br></div><div>You can learn the idea of CMake from the "CMake" 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>