ENH: mark some vars as advanced (and resort the list)
[cmake.git] / Source / cmAddExecutableCommand.h
blobfac1540552166271799d30e437f3e61763e116df
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmAddExecutableCommand.h,v $
5 Language: C++
6 Date: $Date: 2002-01-21 20:30:18 $
7 Version: $Revision: 1.6 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmExecutablesCommand
24 * \brief Defines a list of executables to build.
26 * cmExecutablesCommand defines a list of executable (i.e., test)
27 * programs to create.
29 class cmAddExecutableCommand : public cmCommand
31 public:
32 /**
33 * This is a virtual constructor for the command.
35 virtual cmCommand* Clone()
37 return new cmAddExecutableCommand;
40 /**
41 * This is called when the command is first encountered in
42 * the CMakeLists.txt file.
44 virtual bool InitialPass(std::vector<std::string> const& args);
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 "Add an executable to the project that uses the specified srclists";
59 /**
60 * More documentation.
62 virtual const char* GetFullDocumentation()
64 return
65 "ADD_EXECUTABLE(exename srclist srclist srclist ...)\n"
66 "ADD_EXECUTABLE(exename WIN32 srclist srclist srclist ...)"
67 "This command adds an executable target to the current directory. "
68 "The executable will be built from the source files / source lists "
69 "specified. The second argument to this command can be WIN32 "
70 "which indicates that the executable (when compiled on windows) "
71 "is a windows app (using WinMain)not a console app (using main).";
74 cmTypeMacro(cmAddExecutableCommand, cmCommand);
78 #endif