Newer
Older
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef cmIncludeDirectoryCommand_h
#define cmIncludeDirectoryCommand_h
Bill Hoffman
committed
#include "cmStandardIncludes.h"
Bill Hoffman
committed
* \brief Add include directories to the build.
*
* cmIncludeDirectoryCommand is used to specify directory locations
class cmIncludeDirectoryCommand : public cmCommand
Bill Hoffman
committed
{
public:
* This is a virtual constructor for the command.
Bill Hoffman
committed
{
return new cmIncludeDirectoryCommand;
Bill Hoffman
committed
}
* This is called when the command is first encountered in
Bill Hoffman
committed
virtual bool InitialPass(std::vector<std::string> const& args);
* This determines if the command gets propagated down
* to makefiles located in subdirectories.
*/
virtual bool IsInherited() {return true;}
/**
* The name of the command as specified in CMakeList.txt.
Bill Hoffman
committed
virtual const char* GetName() { return "INCLUDE_DIRECTORIES";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
Bill Hoffman
committed
{
return "Add include directories to the build.";
Bill Hoffman
committed
}
virtual const char* GetFullDocumentation()
Bill Hoffman
committed
{
" INCLUDE_DIRECTORIES([BEFORE] dir1 dir2 ...)\n"
"Add the given directories to those searched by the compiler for "
"include files. If BEFORE is specified, the directories are prepended "
"onto the current list of directories instead of appended.";
Bill Hoffman
committed
}
Brad King
committed
cmTypeMacro(cmIncludeDirectoryCommand, cmCommand);