CMake/Source/cmake.h

72 lines
2.2 KiB
C++

/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "cmMakefile.h"
#include "cmStandardIncludes.h"
class cmake
{
public:
/**
* Generate the SourceFilesList from the SourceLists. This should only be
* done once to be safe.
*/
void Usage(const char *program);
/**
* Generate the SourceFilesList from the SourceLists. This should only be
* done once to be safe. The argument is a list of command line
* arguments. The first argument should be the name or full path
* to the command line version of cmake. For building a GUI,
* you would pass in the following arguments:
* /path/to/cmake -H/path/to/source -B/path/to/build
* If you only want to parse the CMakeLists.txt files,
* but not actually generate the makefiles, use buildMakefiles = false.
*/
int Generate(const std::vector<std::string>&, bool buildMakefiles = true);
///! Parse command line arguments
void SetArgs(cmMakefile& builder, const std::vector<std::string>&);
///! Parse command line arguments that might set cache values
void SetCacheArgs(cmMakefile& builder, const std::vector<std::string>&);
/**
* Generate CMAKE_ROOT and CMAKE_COMMAND cache entries
*/
void AddCMakePaths(const std::vector<std::string>&);
/**
* Handle the case where cmake is being used to bootstrap itself.
* This typically happens on windows, where a cmake executable is
* used to produce makefiles for cmake itself. When bootstrapping
* CMAKE_BOOTSTRAP is set to 1
*/
void HandleBootstrap(cmMakefile& builder, const std::string& arg0);
/**
* constructor
*/
cmake();
private:
bool m_Verbose;
bool m_Local;
};