1
/*=========================================================================
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: cmake.h,v $
6
Date: $Date: 2002/01/07 20:49:07 $
7
Version: $Revision: 1.7 $
9
Copyright (c) 2001 Insight Consortium
12
Redistribution and use in source and binary forms, with or without
13
modification, are permitted provided that the following conditions are met:
15
* Redistributions of source code must retain the above copyright notice,
16
this list of conditions and the following disclaimer.
18
* Redistributions in binary form must reproduce the above copyright notice,
19
this list of conditions and the following disclaimer in the documentation
20
and/or other materials provided with the distribution.
22
* The name of the Insight Consortium, nor the names of any consortium members,
23
nor of any contributors, may be used to endorse or promote products derived
24
from this software without specific prior written permission.
26
* Modified source versions must be plainly marked as such, and must not be
27
misrepresented as being the original software.
29
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
30
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
33
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
36
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
37
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
=========================================================================*/
43
#include "cmMakefile.h"
44
#include "cmStandardIncludes.h"
51
* Generate the SourceFilesList from the SourceLists. This should only be
52
* done once to be safe.
54
void Usage(const char *program);
57
* Generate the SourceFilesList from the SourceLists. This should only be
58
* done once to be safe. The argument is a list of command line
59
* arguments. The first argument should be the name or full path
60
* to the command line version of cmake. For building a GUI,
61
* you would pass in the following arguments:
62
* /path/to/cmake -H/path/to/source -B/path/to/build
63
* If you only want to parse the CMakeLists.txt files,
64
* but not actually generate the makefiles, use buildMakefiles = false.
66
int Generate(const std::vector<std::string>&, bool buildMakefiles = true);
68
///! Parse command line arguments
69
void SetArgs(cmMakefile& builder, const std::vector<std::string>&);
70
///! Parse command line arguments that might set cache values
71
void SetCacheArgs(cmMakefile& builder, const std::vector<std::string>&);
74
* Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
76
void AddCMakePaths(const std::vector<std::string>&);