Re: [CMake] OS X build directory
Paul Dean wrote: So, this cannot be done within CMakeLists.txt for OS X? It must be done like mike says or with a script? Yes, you can not force a directory from the CMakeLists.txt file, a user of cmake expects to be able to pick the output directory. -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] OS X build directory
So, this cannot be done within CMakeLists.txt for OS X? It must be done like mike says or with a script? _ Get a FREE small business Web site and more from Microsoft® Office Live! http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/ ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] OS X build directory
On Monday 17 September 2007 11:48, Mike Jackson wrote: > The easiest way is to create the folder BEFORE cmake is run. I do the > same thing on OS X for gcc and intel compilers. > > mkdir intel; cd intel; ccmake ../ > mdkir gcc; cd gcc; ccmake ../ Yes. > Unless Cmake takes as an argument the build directory to use? Don't > know the answer to that one. No, it uses the current directory as build directory. Alex ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] OS X build directory
The easiest way is to create the folder BEFORE cmake is run. I do the same thing on OS X for gcc and intel compilers. mkdir intel; cd intel; ccmake ../ mdkir gcc; cd gcc; ccmake ../ Unless Cmake takes as an argument the build directory to use? Don't know the answer to that one. -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Sep 17, 2007, at 11:24 AM, Paul Dean wrote: I'm trying to keep my make files and project files orginized in their own folders. Source Dir -- | | - VC2005 | - XCode | - UnixMake etc. This works fine for win32 as I can choose the Build directory in the CMake GUI i.e "C:\Project\VC2005" However, I have tried to do this for OS X and have been unsuccessful. I've tried things like SET (CMAKE_FILES_DIRECTORY "/XCode") and SET (CMAKE_CURRENT_BINARY_DIR "/XCode") sorry for the newbie question. But how would one include something like this into their script? i.e. ... if(xcode){ //make folder for xcode and put all cmake and project files there } if(VC2005){ //make folder for VC2005 and put all cmake and project files there } Thanks in advance :) _ More photos; more messages; more whatever. Windows Live Hotmail - NOW with 5GB storage. http://imagine-windowslive.com/hotmail/? locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] OS X build directory
I'm trying to keep my make files and project files orginized in their own folders. Source Dir -- | | - VC2005 | - XCode | - UnixMake etc. This works fine for win32 as I can choose the Build directory in the CMake GUI i.e "C:\Project\VC2005" However, I have tried to do this for OS X and have been unsuccessful. I've tried things like SET (CMAKE_FILES_DIRECTORY "/XCode") and SET (CMAKE_CURRENT_BINARY_DIR "/XCode") sorry for the newbie question. But how would one include something like this into their script? i.e. ... if(xcode){ //make folder for xcode and put all cmake and project files there } if(VC2005){ //make folder for VC2005 and put all cmake and project files there } Thanks in advance :) _ More photos; more messages; more whatever. Windows Live Hotmail - NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_5G_0907 ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake