What effectively happens is, in XCode I get a project that looks like this:<div><br></div><div>/Sources</div><div> /ALL_BUILD</div><div> /ZERO_CHECK</div><div> /MyApp</div><div> /Source Files</div><div> main.cpp</div>
<div> file.cpp</div><div> blah.cpp</div><div> /Header Files</div><div> file.h</div><div> blah.h</div><div> resource1</div><div> resource2</div><div> resource3</div>
<div>/Resources</div><div> resource1</div><div><br></div><div><div class="gmail_extra"><br><br><div class="gmail_quote">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>
<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><br></div></div>