Here is how I do it:<br><br>SET (MY_CPP<br>&lt;source files&gt;<br>)<br><br>SET (MY_H<br>&lt;header files&gt;<br>)<br><br>SOURCE_GROUP (name_of_group<br>&nbsp;&nbsp;&nbsp; FILES<br>&nbsp;&nbsp;&nbsp; ${MY_CPP}<br>)<br><br>SOURCE_GROUP (name_of_group\\headers
<br>&nbsp;&nbsp;&nbsp; FILES<br>&nbsp;&nbsp;&nbsp; ${MY_H}<br>)<br><br>SET (MY_SRC<br>&nbsp;&nbsp;&nbsp; ${MY_CPP}<br>&nbsp;&nbsp;&nbsp; ${MY_H}<br>)<br><br># add sources to library<br>ADD_LIBRARY (${PROJECT}<br>&nbsp;&nbsp;&nbsp; ${MY_SRC}<br>)<br><br><div><span class="gmail_quote">On 10/3/07, 
<b class="gmail_sendername">Félix C. Morency</b> &lt;<a href="mailto:felix.morency@gmail.com">felix.morency@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I would like to know how to list the header files in the header directory in the visual studio IDE. Actually, only the sources and cmake-related files are listed. I want to be able to see the headers as well (cosmetic reasons). I searched in the doc and on the net and found nothing. I tried with ADD_CUSTOM_COMMAND( OUTPUT ${PROJECT_NAME} MAIN_DEPENDENCY ${PROJ_HDRS} ) but only the last header file listed in ${PROJ_HDRS} appears in the IDE. Could someone help please ?
<br><br>Also, could we do the same thing with generated MOC files (QT4) ?<br><br>Thank you,<br><span class="sg">Félix C. Morency<br>
</span><br>_______________________________________________<br>CMake mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">
http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>