Introduce "generator expressions" to add_test()
[cmake.git] / Source / cmGlobalXCode21Generator.cxx
blob0eba9aa66bfcf9424c989ff6ec9b7cc47454951f
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGlobalXCode21Generator.cxx,v $
5 Language: C++
6 Date: $Date: 2009-06-29 17:02:05 $
7 Version: $Revision: 1.8 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmGlobalXCode21Generator.h"
18 #include "cmXCode21Object.h"
20 //----------------------------------------------------------------------------
21 cmGlobalXCode21Generator::cmGlobalXCode21Generator()
23 this->XcodeVersion = 21;
26 //----------------------------------------------------------------------------
27 void
28 cmGlobalXCode21Generator::WriteXCodePBXProj(std::ostream& fout,
29 cmLocalGenerator* ,
30 std::vector<cmLocalGenerator*>& )
32 fout << "// !$*UTF8*$!\n";
33 fout << "{\n";
34 cmXCode21Object::Indent(1, fout);
35 fout << "archiveVersion = 1;\n";
36 cmXCode21Object::Indent(1, fout);
37 fout << "classes = {\n";
38 cmXCode21Object::Indent(1, fout);
39 fout << "};\n";
40 cmXCode21Object::Indent(1, fout);
41 if (this->XcodeVersion >= 31)
42 fout << "objectVersion = 45;\n";
43 else if (this->XcodeVersion >= 30)
44 fout << "objectVersion = 44;\n";
45 else
46 fout << "objectVersion = 42;\n";
47 cmXCode21Object::PrintList(this->XCodeObjects, fout);
48 cmXCode21Object::Indent(1, fout);
49 fout << "rootObject = " << this->RootObject->GetId()
50 << " /* Project object */;\n";
51 fout << "}\n";