[Cmake] Re: CMake Apple XCode support?

Chris Scharver scharver at evl.uic.edu
Thu, 22 Apr 2004 16:12:39 -0500


On Apr 22, 2004, at 3:55 PM, William A. Hoffman wrote:

> 1. custom commands - being able to run arbitrary commands as part of 
> the build

Building a project really just executes a series of "phases." XCode 
supports copy and shell script phases. Completely arbitrary commands 
would probably just have to go into a shell script and added as a new 
build phase.

> 2. try compiles - creating a small xcode project and build it in batch 
> mode from
> cmake.   For example, the visual studio IDE stuff does something this:
> msdev foo.dsw /MAKE target

'xcodebuild' will build an XCode project from the command line. I use 
it regularly when I don't want to load the whole IDE. I'm not sure, 
however, how to test to see if the build succeeded. How does CMake do 
this currently? Does it rely on a return result from the process or 
check to see if the target was created? If the latter, then that can 
work for XCode.

> 3. sub directories, and out of source builds

XCode can be configured to place builds anywhere on the drive. When 
adding files, it presents an option to copy files into the same 
directory as the project. There's a clean separation between source 
files and project/build files. It seems to use absolute paths already. 
;)

--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002   FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>