1
/*=========================================================================
3
Program: CMake - Cross-Platform Makefile Generator
4
Module: $RCSfile: cmCTestBuildCommand.h,v $
6
Date: $Date: 2008-05-15 19:39:57 $
7
Version: $Revision: 1.5.12.1 $
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
=========================================================================*/
1
/*============================================================================
2
CMake - Cross Platform Makefile Generator
3
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5
Distributed under the OSI-approved BSD License (the "License");
6
see accompanying file Copyright.txt for details.
8
This software is distributed WITHOUT ANY WARRANTY; without even the
9
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
See the License for more information.
11
============================================================================*/
17
12
#ifndef cmCTestBuildCommand_h
18
13
#define cmCTestBuildCommand_h
20
15
#include "cmCTestHandlerCommand.h"
22
17
class cmGlobalGenerator;
18
class cmCTestBuildHandler;
24
20
/** \class cmCTestBuild
25
21
* \brief Run a ctest script
55
51
virtual const char* GetTerseDocumentation()
57
return "Builds the repository.";
53
return "Build the project.";
55
virtual bool InitialPass(std::vector<std::string> const& args,
56
cmExecutionStatus &status);
61
58
* More documentation.
63
60
virtual const char* GetFullDocumentation()
66
" ctest_build([BUILD build_dir] [RETURN_VALUE res])\n"
67
"Builds the given build directory and stores results in Build.xml.";
63
" ctest_build([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n"
64
" [NUMBER_ERRORS val] [NUMBER_WARNINGS val])\n"
65
"Builds the given build directory and stores results in Build.xml. "
66
"If no BUILD is given, the CTEST_BINARY_DIRECTORY variable is used. "
67
"The RETURN_VALUE option specifies a variable in which to store the "
68
"return value of the native build tool. "
69
"The NUMBER_ERRORS and NUMBER_WARNINGS options specify variables in "
70
"which to store the number of build errors and warnings detected."
72
CTEST_COMMAND_APPEND_OPTION_DOCS;
70
75
cmTypeMacro(cmCTestBuildCommand, cmCTestHandlerCommand);