[CMake] aggregate targets and adding a library as resource

2009-03-24 Thread Mattias Holm
Hi, I am trying to use CMake to install resources with the set_source_files_properties and then specifying the MACOSX_PACKAGE_LOCATION. This works fine for files like PNGs and so on, but how do I do this for a dynamic library built with CMake. Simply put, I am trying to do something

Re: [CMake] Building Cocoa applications with CMake

2008-05-16 Thread Mattias Holm
Hi, You need to add the resources to the executable and set the MACOSX_PACKAGE_LOCATION property for them. I think that this will only work with CMake 2.6. I do something like this, nicked the lines from my project: file(GLOB ORBIT_RES_TEX textures/*.tga)

[CMake] exporting variables upwards

2008-05-12 Thread Mattias Holm
Hi, I have a project structured as follows: xyz/ CMakeLists.txt src/ CMakeLists.txt rsrc/ CMakeLists.txt include/ CMakeLists.txt Now, if I in the rsrc directory locate a bunch of files and set these as variables, they will not be seen by the other CMakeLists, is there any way to

[CMake] installing resources in mac app on cmake 2.6

2008-04-07 Thread Mattias Holm
Hi, I asked about this before, but i think it was lost in all the other talk of cmake 2.6 at that moment. How do I ensure that resources added to the resource list of an application is installed in the MacOS X application bundle? Will it be done during the normal build (i.e. without typing make

Re: [CMake] installing resources in mac app on cmake 2.6

2008-04-07 Thread Mattias Holm
and the file is added as a source, it should be copied into the .app bundle during a make (or a build with Xcode). HTH, David On Mon, Apr 7, 2008 at 12:16 PM, Mattias Holm [EMAIL PROTECTED] wrote: Hi, I asked about this before, but i think it was lost in all the other talk of cmake 2.6

[CMake] cmake 2.6 rc5 resources on os x

2008-04-02 Thread Mattias Holm
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

Re: [CMake] xcode projects missing files

2006-11-27 Thread Mattias Holm
Thanks, This works sorta. The problem is that when adding the CMakeList.txt files, these are inserted into the compile sources phase. Thus, one get a lot of warnings about Xcode not being able to build the CMakeList.txt file, the same happens for other files not recognised by Xcode.

[CMake] xcode projects missing files

2006-11-25 Thread Mattias Holm
Hi, I am trying to generate an Xcode project with CMake. However, there seem to be a couple of issues with this. Firstly, the CMakeLists.txt files arn't added to the project, so updating the project files is kind of a pain. Secondly, in the project I am working with I have several .l