Add label summary times to ctest default output. Also, remove parallel time output...
[cmake.git] / Source / cmAddExecutableCommand.h
blob71983a61d47ae078768ceb2af335ddd113eb8fc9
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmAddExecutableCommand.h,v $
5 Language: C++
6 Date: $Date: 2009-09-03 19:29:29 $
7 Version: $Revision: 1.22 $
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 cmExecutablesCommand_h
18 #define cmExecutablesCommand_h
20 #include "cmCommand.h"
22 /** \class cmExecutablesCommand
23 * \brief Defines a list of executables to build.
25 * cmExecutablesCommand defines a list of executable (i.e., test)
26 * programs to create.
28 class cmAddExecutableCommand : public cmCommand
30 public:
31 /**
32 * This is a virtual constructor for the command.
34 virtual cmCommand* Clone()
36 return new cmAddExecutableCommand;
39 /**
40 * This is called when the command is first encountered in
41 * the CMakeLists.txt file.
43 virtual bool InitialPass(std::vector<std::string> const& args,
44 cmExecutionStatus &status);
46 /**
47 * The name of the command as specified in CMakeList.txt.
49 virtual const char* GetName() { return "add_executable";}
51 /**
52 * Succinct documentation.
54 virtual const char* GetTerseDocumentation()
56 return
57 "Add an executable to the project using the specified source files.";
60 /**
61 * More documentation.
63 virtual const char* GetFullDocumentation()
65 return
66 " add_executable(<name> [WIN32] [MACOSX_BUNDLE]\n"
67 " [EXCLUDE_FROM_ALL]\n"
68 " source1 source2 ... sourceN)\n"
69 "Adds an executable target called <name> to be built from the "
70 "source files listed in the command invocation. "
71 "The <name> corresponds to the logical target name and must be "
72 "globally unique within a project. "
73 "The actual file name of the executable built is constructed based on "
74 "conventions of the native platform "
75 "(such as <name>.exe or just <name>). "
76 "\n"
77 "By default the executable file will be created in the build tree "
78 "directory corresponding to the source tree directory in which "
79 "the command was invoked. "
80 "See documentation of the RUNTIME_OUTPUT_DIRECTORY "
81 "target property to change this location. "
82 "See documentation of the OUTPUT_NAME target property to change "
83 "the <name> part of the final file name. "
84 "\n"
85 "If WIN32 is given the property WIN32_EXECUTABLE will be set on the "
86 "target created. "
87 "See documentation of that target property for details."
88 "\n"
89 "If MACOSX_BUNDLE is given the corresponding property will be "
90 "set on the created target. "
91 "See documentation of the MACOSX_BUNDLE target property for details."
92 "\n"
93 "If EXCLUDE_FROM_ALL is given the corresponding property will be "
94 "set on the created target. "
95 "See documentation of the EXCLUDE_FROM_ALL target property for "
96 "details."
97 "\n"
98 "The add_executable command can also create IMPORTED executable "
99 "targets using this signature:\n"
100 " add_executable(<name> IMPORTED)\n"
101 "An IMPORTED executable target references an executable file located "
102 "outside the project. "
103 "No rules are generated to build it. "
104 "The target name has scope in the directory in which it is created "
105 "and below. "
106 "It may be referenced like any target built within the project. "
107 "IMPORTED executables are useful for convenient reference from "
108 "commands like add_custom_command. "
109 "Details about the imported executable are specified by setting "
110 "properties whose names begin in \"IMPORTED_\". "
111 "The most important such property is IMPORTED_LOCATION "
112 "(and its per-configuration version IMPORTED_LOCATION_<CONFIG>) "
113 "which specifies the location of the main executable file on disk. "
114 "See documentation of the IMPORTED_* properties for more information."
118 cmTypeMacro(cmAddExecutableCommand, cmCommand);
122 #endif