*without CMake (not &quot;without XCode&quot;).<div><br></div><div>Apparently I&#39;m incapable of using email today.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 November 2012 21:58, Darrell Blake <span dir="ltr">&lt;<a href="mailto:darrell.blake@gmail.com" target="_blank">darrell.blake@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-family:arial,sans-serif;font-size:13px">Sorry. I sent the previous version prematurely :/</span></div>
<div class="im"><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><span style="font-family:arial,sans-serif;font-size:13px">What effectively happens is, in XCode I get a project that looks like this:</span><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">/Sources</div><div style="font-family:arial,sans-serif;font-size:13px">    /ALL_BUILD</div><div style="font-family:arial,sans-serif;font-size:13px">    /ZERO_CHECK</div>

<div style="font-family:arial,sans-serif;font-size:13px">    /MyApp</div><div style="font-family:arial,sans-serif;font-size:13px">        /Source Files</div><div style="font-family:arial,sans-serif;font-size:13px">            main.cpp</div>

<div style="font-family:arial,sans-serif;font-size:13px">            file.cpp</div><div style="font-family:arial,sans-serif;font-size:13px">            blah.cpp</div><div style="font-family:arial,sans-serif;font-size:13px">

        /Header Files</div><div style="font-family:arial,sans-serif;font-size:13px">            file.h</div><div style="font-family:arial,sans-serif;font-size:13px">            blah.h</div><div style="font-family:arial,sans-serif;font-size:13px">

    resource1</div><div style="font-family:arial,sans-serif;font-size:13px">    resource2</div><div style="font-family:arial,sans-serif;font-size:13px">    resource3</div><div style="font-family:arial,sans-serif;font-size:13px">

/Resources</div><div style="font-family:arial,sans-serif;font-size:13px">    resource1</div></div><div style="font-family:arial,sans-serif;font-size:13px">    resource2</div><div style="font-family:arial,sans-serif;font-size:13px">

    resource3</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The resource files are included in the Source group as well as the Resource group and there&#39;s no need for them to be in the Source group at all. If I were creating the project without XCode I would just drag the resources into the Resource group.</div>
<span class="HOEnZb"><font color="#888888">
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Darrell</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div></font></span><div class="gmail_extra">

<br><br><div class="gmail_quote"><div class="im">On 23 November 2012 21:26, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt;</span> wrote:<br></div><div>
<div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What do you mean they get duplicated into the Source tree? The input<br>
is in the source tree, right?<br>
<div><div><br>
<br>
On Fri, Nov 23, 2012 at 3:49 PM, Darrell Blake &lt;<a href="mailto:darrell.blake@gmail.com" target="_blank">darrell.blake@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;ve created a CMake project which adds resources to XCode similar to this:<br>
&gt;<br>
&gt; set(source_files main.cpp file.cpp blah.cpp)<br>
&gt; set(resource_files resource1 resource2 resource3)<br>
&gt; set_source_files_properties(${resource_files} PROPERTIES<br>
&gt; MACOSX_PACKAGE_LOCATION Resources)<br>
&gt; add_executable(MyApp MACOSX_BUNDLE ${source_files} ${resource_files})<br>
&gt;<br>
&gt; Everything seems to work fine but the resource files get duplicated into the<br>
&gt; &quot;Source&quot; tree as well as the &quot;Resource&quot; tree. Is there any way to stop this?<br>
&gt; I tried removing ${resource_files} from add_executable() but then it fails<br>
&gt; to find the resources at all.<br>
&gt;<br>
&gt; Darrell<br>
&gt;<br>
&gt;<br>
</div></div><span><font color="#888888">&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></span></blockquote></div></div></div><br></div>
</blockquote></div><br></div>