<div dir="ltr"><div><div><div>Hi Lucas, <br><br></div>You could use the &quot;source_group&quot; command. See <a href="http://www.cmake.org/cmake/help/v2.8.11/cmake.html#command:source_group">http://www.cmake.org/cmake/help/v2.8.11/cmake.html#command:source_group</a><br>

<br></div><div>For example of usage, see [1]<br></div><div><br></div>Hth<br></div>Jc<br><br>[1] <a href="https://github.com/commontk/CTK/blob/dcf7db15f2b43507395316dd680dba5999f886b4/CMake/ctkMacroBuildLib.cmake#L117-127">https://github.com/commontk/CTK/blob/dcf7db15f2b43507395316dd680dba5999f886b4/CMake/ctkMacroBuildLib.cmake#L117-127</a><br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 22, 2013 at 11:25 AM, Lucas Soltic <span dir="ltr">&lt;<a href="mailto:lucas.soltic@orange.fr" target="_blank">lucas.soltic@orange.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Is it possible to add files that do not belong to any add_executable/library so that they&#39;re visible in the IDE but not used for building?<br>
That way I could easily work with the generated project on any useful file, even if it&#39;s not directly used to produce binaries (for example, editing CMakeLists.txt from the IDE).<br>
<br>
Regards,<br>
Lucas<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br>
</div>