*without CMake (not "without XCode").<div><br></div><div>Apparently I'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"><<a href="mailto:darrell.blake@gmail.com" target="_blank">darrell.blake@gmail.com</a>></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'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"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></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 <<a href="mailto:darrell.blake@gmail.com" target="_blank">darrell.blake@gmail.com</a>> wrote:<br>
> I've created a CMake project which adds resources to XCode similar to this:<br>
><br>
> set(source_files main.cpp file.cpp blah.cpp)<br>
> set(resource_files resource1 resource2 resource3)<br>
> set_source_files_properties(${resource_files} PROPERTIES<br>
> MACOSX_PACKAGE_LOCATION Resources)<br>
> add_executable(MyApp MACOSX_BUNDLE ${source_files} ${resource_files})<br>
><br>
> Everything seems to work fine but the resource files get duplicated into the<br>
> "Source" tree as well as the "Resource" tree. Is there any way to stop this?<br>
> I tried removing ${resource_files} from add_executable() but then it fails<br>
> to find the resources at all.<br>
><br>
> Darrell<br>
><br>
><br>
</div></div><span><font color="#888888">> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</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>
</font></span></blockquote></div></div></div><br></div>
</blockquote></div><br></div>