[CMake] 'Parallel' CMakeLists.txt?

2012-01-28 Thread g...@novadsp.com
Is it possible to get CMake to process/search for an alternative default filename to CMakeLists.txt? Motivation: I'm trying to set up CMake files for a rather large project that has an existing set of CMake files that a) I'd like to keep in place and b) keep unchanged until the parallel build

Re: [CMake] XCode post-build processing?

2011-12-03 Thread g...@novadsp.com
Thanks Michael. Now how do I make 'copy' copy a Mac .app bundle? copy file simply creates an empty directory call mac.app and copy directory refuses to obey. Thx++ On 02/12/2011 05:43, Michael Wild wrote: On 12/01/2011 11:24 PM, g...@novadsp.com wrote: How can I get the same effect

[CMake] XCode post-build processing?

2011-12-01 Thread g...@novadsp.com
How can I get the same effect as the Visual Studio post-build rules? Nothing too fancy, just copy and zip files into a /dist directory. Thx++ -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread g...@novadsp.com
I forgot to aks - what is the recommended way of adding multiple definitions? i.e. /D_DEBUG /D_NO_GZIP? Thx++ On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. My cmakefile has

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-25 Thread g...@novadsp.com
Thanks. On 25/11/2011 14:52, Michael Wild wrote: On 11/25/2011 03:40 PM, g...@novadsp.com wrote: [ Fixed TOFU ] On 24/11/2011 22:22, Michael Hertling wrote: On 11/24/2011 07:08 PM, g...@novadsp.com wrote: How can I do this? Specifically generating for XCode. -- Powered

[CMake] XCode: Detect debug build to enable /D_Debug or similar?

2011-11-24 Thread g...@novadsp.com
How can I do this? Specifically generating for XCode. My cmakefile has this: if (${CMAKE_CFG_INTDIR} STREQUAL Debug) Message(We are generating/building debug code for ${this_target}) ADD_DEFINITIONS(/D_DEBUG) endif() But _DEBUG is never defined. This question comes up twice on StackOverflow.

Re: [CMake] XCode: Detect debug build to enable /D_Debug or similar? [solved]

2011-11-24 Thread g...@novadsp.com
Michael, *thanks*. This works exactly as hoped with CMake 2.8.6 on Snow Leopard. Kudos. On 24/11/2011 22:22, Michael Hertling wrote: SET_DIRECTORY_PROPERTIES(PROPERTIES COMPILE_DEFINITIONS_DEBUG _DEBUG) -- Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] cmake / xcode / c++ header files

2011-11-22 Thread g...@novadsp.com
How can I get the cmake xcode generator to add a /include folder to generated projects? The cmakelists contain these directives: SET(${this_target}_HEADER_FILES ./a.h ./b.h) SET_SOURCE_FILES_PROPERTIES(${this_target}_HEADER_FILES PROPERTIES HEADER_FILE_ONLY TRUE) LIST(APPEND

Re: [CMake] cmake / xcode / c++ header files [solved]

2011-11-22 Thread g...@novadsp.com
${${this_target}_HEADER_FILES} ${this_target}_SOURCE_FILES TRUE) This seems to need CMake 2.8.6 to really work well. -- Mike Jacksonwww.bluequartz.net On Nov 22, 2011, at 8:42 AM, g...@novadsp.com wrote: How can I get the cmake xcode generator to add a /include folder to generated projects

Re: [CMake] CMake 2.8, Xcode generator and XIB files

2011-10-03 Thread g...@novadsp.com
all the feedback we can get ;-) Thanks, Daniel Dekkers On Oct 2, 2011, at 6:27 PM, g...@novadsp.com wrote: 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

Re: [CMake] CMake 2.8, Xcode generator and XIB files

2011-10-03 Thread g...@novadsp.com
}/Info.plist as input and ${CMAKE_CURRENT_BINARY_DIR}/Info.plist as output. Then you incorporate the configured version into the bundle: set_target_properties(${this_target} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) On Oct 3, 2011, at 8:24 AM, g...@novadsp.com wrote

Re: [CMake] CMake 2.8, Xcode generator and XIB files

2011-10-02 Thread g...@novadsp.com
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

Re: [CMake] CMake 2.8, Xcode generator and XIB files

2011-10-02 Thread 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

[CMake] CMake 2.8, Xcode generator and XIB files

2011-09-30 Thread g...@novadsp.com
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

Re: [CMake] CMake 2.8, Xcode generator and XIB files

2011-09-30 Thread g...@novadsp.com
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