<div>Hi everyone,</div><div><br></div><div>At the beginning, The ITK3.2 was installed in my computer(window7, visual studio 2008 c++ express), then I installed the lastest version ITK4.0, so now, how to write the CMakeLists? Maybe it is very easy! If you are free, please tell me!! Thank you very much!</div>
<br class="Apple-interchange-newline"><div><br></div><div>e.g,</div><div><br></div><div>cmake_minimum_required( VERSION 2.8 )</div><div>project( image_read_write )</div><div><br></div><div>find_package (ITK) ### here, because of two ITK version in my computer, how to specify the specific one?</div>
<div>if (ITK_FOUND)</div><div> include ( ${ITK_USE_FILE} )</div><div>else (ITK_FOUND)</div><div> message (FATAL_ERROR "Cannot build without ITK, Please set ITK_DIR.")</div><div>endif (ITK_FOUND)</div><div><br>
</div><div>add_executable( image_read_write main.cxx )</div><div><br></div><div>target_link_libraries( image_read_write ### And here?</div><div> ${ITK_LIBRARIES}</div><div> itkCommon </div><div> itkIO </div><div> )</div>
<div><br></div><div><br></div><div><br></div><div><br></div>-- <br><div>Wenwu Zhu</div><div>University of Strasbourg, France<br>Email address: <a href="mailto:cool.wenwu@gmail.com" target="_blank">cool.wenwu@gmail.com</a></div>
<br>