1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmSetDirectoryPropertiesCommand.h,v $
6 Date: $Date: 2008/01/23 15:27:59 $
7 Version: $Revision: 1.7 $
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 cmSetDirectoryPropertiesCommand_h
18 #define cmSetDirectoryPropertiesCommand_h
20 #include "cmCommand.h"
22 class cmSetDirectoryPropertiesCommand
: public cmCommand
25 virtual cmCommand
* Clone()
27 return new cmSetDirectoryPropertiesCommand
;
31 * This is called when the command is first encountered in
34 virtual bool InitialPass(std::vector
<std::string
> const& args
,
35 cmExecutionStatus
&status
);
38 * This determines if the command is invoked when in script mode.
40 virtual bool IsScriptable() { return true; }
43 * The name of the command as specified in CMakeList.txt.
45 virtual const char* GetName() { return "set_directory_properties";}
48 * Succinct documentation.
50 virtual const char* GetTerseDocumentation()
52 return "Set a property of the directory.";
56 * Static entry point for use by other commands
58 static bool RunCommand(cmMakefile
*mf
,
59 std::vector
<std::string
>::const_iterator ait
,
60 std::vector
<std::string
>::const_iterator aitend
,
64 * Longer documentation.
66 virtual const char* GetFullDocumentation()
69 " set_directory_properties(PROPERTIES prop1 value1 prop2 value2)\n"
70 "Set a property for the current directory and subdirectories. If the "
71 "property is not found, CMake will report an error. The properties "
72 "include: INCLUDE_DIRECTORIES, LINK_DIRECTORIES, "
73 "INCLUDE_REGULAR_EXPRESSION, and ADDITIONAL_MAKE_CLEAN_FILES.\n"
74 "ADDITIONAL_MAKE_CLEAN_FILES is a list of files that will be cleaned "
75 "as a part of \"make clean\" stage.";
78 cmTypeMacro(cmSetDirectoryPropertiesCommand
, cmCommand
);