[CMake] cmake 2.6 rc5 resources on os x

Mattias Holm mattias.holm at contra.nu
Wed Apr 2 13:39:33 EDT 2008


Hi,

I am trying to get a grip on how to get resources installed in an  
application bundle on OS X. What do i have to do except the following:

     set_target_properties(foo
                       			   PROPERTIES
                                            RESOURCE ${res_list})

I try this, but when I do a make, none of the resources end up in the  
Foo.app/Contents/Resources/

Also, how do I put resources in a specific subdirectory of the  
Resources directory (e.g. Foo.app/Contents/Resources/Textures/)?


There is also a few minor issues with the cmake gui.

1. It is not named using normal notation for application bundles. They  
should contain at least a capital letter in the beginning, so the name  
should probably be "CMake.app".

2. When clicking configure, you get a dialogue where you can select  
the generator. The dialogue have no cancel button, and if one click on  
the close dialogue control (the red gem), then the app acts as if one  
clicked on the configure button in the dialogue.

3. It would be good if the cmake process was started through a  
separate shell, otherwise it will only pick up environment variables  
from the environment.plist and not the ones in your .profile.

4. Trying to set the path of a program that was not found does not  
seem to work, after selecting the program, the variable reverts back  
to FOO_NOT_FOUND.

5. The icon is not in high enough resolution, looks really ugly when  
viewed in cover flow or the column view preview panel.


/ Mattias


More information about the CMake mailing list