MantisBT - CMake
View Issue Details
0015848CMakeCMakepublic2015-11-17 09:542016-05-02 08:30
Bartosz 
 
normalminoralways
closedfixed 
Apple MacOS X
CMake 3.4 
CMake 3.5CMake 3.5 
0015848: Generalize RESOURCE target property to by used by all Bundles (not only by FRAMEWORK)
Currently RESOURCE target property is used only for FRAMEWORK
https://cmake.org/cmake/help/v3.4/prop_tgt/RESOURCE.html [^]

It will be great to reuse such property for all bundles:
https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html [^]

The basic structure of a Mac app:
MyApp.app/
   Contents/
      Info.plist
      MacOS/
      Resources

It could be also be used for iOS Frameworks:

Bundle structure of an iOS application (flat structure):
MyApp.app
   MyApp
   MyAppIcon.png
   MySearchIcon.png
   Info.plist
   Default.png
   MainWindow.nib
   Settings.bundle
   MySettingsIcon.png
What needs to be done:
- Implement such solution for Application Bundle and Core Foundation Bundle
- Add unit tests
- Update documentation
I would like to be volunteer for that task, if there will be agreement about such solution
No tags attached.
zip cmake_ios_framework_with_resource.zip (6,480) 2015-11-17 10:36
https://public.kitware.com/Bug/file/5577/cmake_ios_framework_with_resource.zip
zip cmake_osx_framework_with_resource.zip (5,537) 2015-11-17 10:36
https://public.kitware.com/Bug/file/5578/cmake_osx_framework_with_resource.zip
zip cmake_ios_framework_with_resource2.zip (7,055) 2015-11-18 09:27
https://public.kitware.com/Bug/file/5580/cmake_ios_framework_with_resource2.zip
patch 0001-Create-flat-directory-structure-for-resources-in-iOS.patch (3,620) 2015-11-18 10:45
https://public.kitware.com/Bug/file/5581/0001-Create-flat-directory-structure-for-resources-in-iOS.patch
patch 0001-Fix-resource-directory-structure-update-help-and-tes.patch (9,240) 2015-11-26 07:27
https://public.kitware.com/Bug/file/5585/0001-Fix-resource-directory-structure-update-help-and-tes.patch
Issue History
2015-11-17 09:54BartoszNew Issue
2015-11-17 10:07Brad KingNote Added: 0039877
2015-11-17 10:36BartoszFile Added: cmake_ios_framework_with_resource.zip
2015-11-17 10:36BartoszFile Added: cmake_osx_framework_with_resource.zip
2015-11-18 09:27BartoszFile Added: cmake_ios_framework_with_resource2.zip
2015-11-18 10:45BartoszFile Added: 0001-Create-flat-directory-structure-for-resources-in-iOS.patch
2015-11-20 09:17Brad KingNote Added: 0039898
2015-11-26 07:27BartoszFile Added: 0001-Fix-resource-directory-structure-update-help-and-tes.patch
2015-12-03 09:09Brad KingNote Added: 0039948
2015-12-03 09:09Brad KingStatusnew => resolved
2015-12-03 09:09Brad KingResolutionopen => fixed
2015-12-03 09:09Brad KingFixed in Version => CMake 3.5
2015-12-03 09:09Brad KingTarget Version => CMake 3.5
2016-05-02 08:30Robert MaynardNote Added: 0040975
2016-05-02 08:30Robert MaynardStatusresolved => closed

Notes
(0039877)
Brad King   
2015-11-17 10:07   
> I would like to be volunteer for that task, if there will be agreement about such solution

Great. Please bring your proposal up on the developer mailing list for discussion with a broader audience.
(0039898)
Brad King   
2015-11-20 09:17   
Corresponding mailing list thread:

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/14908/focus=15014 [^]
(0039948)
Brad King   
2015-12-03 09:09   
Another mailing list thread:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/15137 [^]

Patch applied here:

 iOS: Fix framework resource directory layout
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e76ee2c0 [^]
(0040975)
Robert Maynard   
2016-05-02 08:30   
Closing resolved issues that have not been updated in more than 4 months.