Add label summary times to ctest default output. Also, remove parallel time output...
[cmake.git] / Source / cmUtilitySourceCommand.h
blobee61a18c285a2c8495eadd78c1318100ee03e9eb
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmUtilitySourceCommand.h,v $
5 Language: C++
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.14 $
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 #ifndef cmUtilitySourceCommand_h
18 #define cmUtilitySourceCommand_h
20 #include "cmCommand.h"
22 /** \class cmUtilitySourceCommand
23 * \brief A command to setup a cache entry with the location of a third-party
24 * utility's source.
26 * cmUtilitySourceCommand is used when a third-party utility's source is
27 * included in the project's source tree. It specifies the location of
28 * the executable's source, and any files that may be needed to confirm the
29 * identity of the source.
31 class cmUtilitySourceCommand : public cmCommand
33 public:
34 /**
35 * This is a virtual constructor for the command.
37 virtual cmCommand* Clone()
39 return new cmUtilitySourceCommand;
42 /**
43 * This is called when the command is first encountered in
44 * the CMakeLists.txt file.
46 virtual bool InitialPass(std::vector<std::string> const& args,
47 cmExecutionStatus &status);
49 /**
50 * The name of the command as specified in CMakeList.txt.
52 virtual const char* GetName() { return "utility_source";}
54 /**
55 * Succinct documentation.
57 virtual const char* GetTerseDocumentation()
59 return "Specify the source tree of a third-party utility.";
62 /**
63 * More documentation.
65 virtual const char* GetFullDocumentation()
67 return
68 " utility_source(cache_entry executable_name\n"
69 " path_to_source [file1 file2 ...])\n"
70 "When a third-party utility's source is included in the distribution, "
71 "this command specifies its location and name. The cache entry will "
72 "not be set unless the path_to_source and all listed files exist. It "
73 "is assumed that the source tree of the utility will have been built "
74 "before it is needed.\n"
75 "When cross compiling CMake will print a warning if a utility_source() "
76 "command is executed, because in many cases it is used to build an "
77 "executable which is executed later on. This doesn't work when "
78 "cross compiling, since the executable can run only on their target "
79 "platform. So in this case the cache entry has to be adjusted manually "
80 "so it points to an executable which is runnable on the build host.";
83 /** This command is kept for compatibility with older CMake versions. */
84 virtual bool IsDiscouraged()
86 return true;
90 cmTypeMacro(cmUtilitySourceCommand, cmCommand);
95 #endif