[CMake] Resources duplicated into source tree in XCode
Darrell Blake
darrell.blake at gmail.com
Fri Nov 23 15:49:33 EST 2012
I've created a CMake project which adds resources to XCode similar to this:
set(source_files main.cpp file.cpp blah.cpp)
set(resource_files resource1 resource2 resource3)
set_source_files_properties(${resource_files} PROPERTIES
MACOSX_PACKAGE_LOCATION Resources)
add_executable(MyApp MACOSX_BUNDLE ${source_files} ${resource_files})
Everything seems to work fine but the resource files get duplicated into
the "Source" tree as well as the "Resource" tree. Is there any way to stop
this? I tried removing ${resource_files} from add_executable() but then it
fails to find the resources at all.
Darrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121123/2ce5bb27/attachment.htm>
More information about the CMake
mailing list