Re: [CMake] Building Mac OSX .apps for Sys 10.6 and 10.8 with Cmake using 10.7.5 on the command line

2013-02-07 Thread Sean McBride
On Thu, 7 Feb 2013 17:05:55 -0800, Ed said: >I am trying to build an app to be compatible with Mac OSX systems 10.6, >10.7, and 10.8 using the command line with cmake. I have successfully >built it for 10.7.5, now I would like to expand this app to be >compatible with 10.6 and 10.8 is this possib

[CMake] Building Mac OSX .apps for Sys 10.6 and 10.8 with Cmake using 10.7.5 on the command line

2013-02-07 Thread Ed
Hello: I am trying to build an app to be compatible with Mac OSX systems 10.6, 10.7, and 10.8 using the command line with cmake. I have successfully built it for 10.7.5, now I would like to expand this app to be compatible with 10.6 and 10.8 is this possible? This is the command I am issuing to

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Clinton Stimpson
On Wednesday, February 06, 2013 01:09:20 PM Patrick Johnmeyer wrote: > I have looked through the CMake wikis and several mailing list threads that > the following google search returned, and I have not found a definitive > answer to my question. > > [site:www.cmake.org/pipermail/cmake CPack multip

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Patrick Johnmeyer
On Thu, Feb 7, 2013 at 12:41 PM, Yngve Inntjore Levinsen < yngve.levin...@gmail.com> wrote: > I think you are fighting the tool in any case, because you are asking to > build multiple configurations in one build folder (?). Normally you would > create one build folder per configuration.. Which I g

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Jean-Christophe Fillion-Robin
The approach suggested by Ansis looks interesting. Instead of using "install(FILES ...), you could use CPACK_INSTALL_CMAKE_PROJECTS [1][2]. For an example, see [3] and [4] [1] http://www.cmake.org/cmake/help/v2.8.8/cpack.html#variable:CPACK_INSTALL_CMAKE_PROJECTS [2] http://www.cmake.org/Wiki/CMak

Re: [CMake] Visual Studio makefile project output

2013-02-07 Thread Bill Hoffman
On 2/6/2013 6:00 PM, Theo Berkau wrote: Hello, I've been trying to setup a cross-compiled project using cmake and so far everything's working fine using "Unix Makefiles" generator, etc. Now I know generating for visual studio generally doesn't work under a cross compiling setup, but I was wonder

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Yngve Inntjore Levinsen
Hi, I think you are fighting the tool in any case, because you are asking to build multiple configurations in one build folder (?). Normally you would create one build folder per configuration.. Which I guess is what you are doing today. Instead of specifying the compile flags manually you can in

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Ansis Māliņš
How about something like this: if(${CMAKE_BUILD_TYPE STREQUAL DebugAndRelease) include(ExternalProject) ExternalProject_Add(MEDEBUG CMAKE_FLAGS -DCMAKE_BUILD_TYPE Debug) ExternalProject_Add(MERELEASE CMAKE_FLAGS -DCMAKE_BUILD_TYPE Release) install(FILES ...) #et

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Patrick Johnmeyer
On Thu, Feb 7, 2013 at 3:12 AM, Yngve Inntjore Levinsen < yngve.levin...@gmail.com> wrote: > Did you try to create two targets and add per-target compile flags? > > What you suggest is replacing configurations with targets. That may be possible, but runs counter to how CMake natively works. I fee

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-07 Thread Yngve Inntjore Levinsen
Did you try to create two targets and add per-target compile flags? Something along the lines of add_library(mylib_rel ${sources}) add_library(mylib_dbg ${sources}) set_target_properties(mylib_rel PROPERTIES COMPILE_FLAGS -O3) set_target_properties(mylib_dbg PROPERTIES COMPILE_FLAGS -O0 -g) Not e