I don't think you need the configure_file() command.
What happens now (if i understand correctly) is that:
1) a copy of Info.plist is made from CMAKE_CURRENT_SOURCE_DIR to
CMAKE_CURRENT_BINARY_DIR
2) a copy of Info.plist is made from CMAKE_CURRENT_BINARY_DIR to
path/to/build/CMakeFiles/[appname]
Thanks all, the help is *very* much appreciated. I'll revise and report
back.
On 03/10/2011 15:14, Richard Wackerbarth wrote:
I don't think that you want the SOURCE file in the bundle.
First, you need to process the source file with configure_file():
Use ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
My apology ... I haven't kept up with the non-explicit implications of the
Mac-specific properties.
On Oct 3, 2011, at 9:34 AM, David Cole wrote:
> On Mon, Oct 3, 2011 at 10:14 AM, Richard Wackerbarth
> wrote:
> I don't think that you want the SOURCE file in the bundle.
>
> First, you need to
On Mon, Oct 3, 2011 at 10:14 AM, Richard Wackerbarth wrote:
> I don't think that you want the SOURCE file in the bundle.
>
> First, you need to process the source file with configure_file():
> Use ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist as input
> and ${CMAKE_CURRENT_BINARY_DIR}/Info.plist as outp
I don't think that you want the SOURCE file in the bundle.
First, you need to process the source file with configure_file():
Use ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist as input
and ${CMAKE_CURRENT_BINARY_DIR}/Info.plist as output.
Then you incorporate the configured version into the bundle:
set_
Hi Daniel
In a word: badly :(
1. I cannot get CMake to parse this:
# should end up in resources section
SET (RESOURCE_FILES ./WV.icns ./InfoPlist.strings ./MainMenu.xib
./Info.plist)
# we want an OSX bundle
set_target_properties(${this_target} PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${CMAKE_CURR
Hi,
Let me know how it works out for you...
We will be writing an article about this subject (platform independence, OSX,
iOS, Windows, mainly focussed on OpenGL/ES1/ES2) in the fall,
so we need all the feedback we can get ;-)
Thanks,
Daniel Dekkers
On Oct 2, 2011, at 6:27 PM, g...@novadsp.com
Hi Daniel
On 02/10/2011 15:03, Daniel Dekkers wrote:
With...
SET_TARGET_PROPERTIES( ${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${PLIST_TEMPLATE} )
... we set a path to a Info.plist template (we actually got separate ones for iOS and
OSX). Maybe you can call them what you want, haven't t
With...
SET_TARGET_PROPERTIES( ${APP_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${PLIST_TEMPLATE} )
... we set a path to a Info.plist template (we actually got separate ones for
iOS and OSX). Maybe you can call them what you want, haven't tried.
"Info.plist.in" would be good. I'll try.
These te
Hi Daniel, can you clarify this a bit? Do you have an example?
On 30/09/2011 15:23, Daniel Dekkers wrote:
Correction: not the Info.plist. That is treated differently because CMake
generates its own for the project.
You can set a "template" Info.plist though where ${VARIABLE} entries are
subsit
Hi Daniel
On 30/09/2011 15:14, Daniel Dekkers wrote:
I've been battling with .xibs for weeks. What I am finally doing now is not
trying to compile and add them to the bundle via CMake myself using custom
commands.
I just add them as sources to ADD_EXECUTABLE(... ${RESOURCES}) and set
SET_TARG
Correction: not the Info.plist. That is treated differently because CMake
generates its own for the project.
You can set a "template" Info.plist though where ${VARIABLE} entries are
subsituted with (known) CMake variables.
On Sep 30, 2011, at 4:14 PM, Daniel Dekkers wrote:
> Hi Jerry,
>
> I'v
Hi Jerry,
I've been battling with .xibs for weeks. What I am finally doing now is not
trying to compile and add them to the bundle via CMake myself using custom
commands.
I just add them as sources to ADD_EXECUTABLE(... ${RESOURCES}) and set
SET_TARGET_PROPERTIES(... PROPERTIES RESOURCE ${RESOUR
My CMake rules to convert a .XIB file to a .NIB file in the application
bundle work for makefile builds.
However I cannot get the same result when using the Xcode generator.
Does anyone have a working example for XCode 3.X or 4 they can share?
The cmakelists.txt script is
Message("We are gen
14 matches
Mail list logo