1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmLinkDirectoriesCommand.h,v $
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.13 $
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 cmLinkDirectoriesCommand_h
18 #define cmLinkDirectoriesCommand_h
20 #include "cmCommand.h"
22 /** \class cmLinkDirectoriesCommand
23 * \brief Define a list of directories containing files to link.
25 * cmLinkDirectoriesCommand is used to specify a list
26 * of directories containing files to link into executable(s).
27 * Note that the command supports the use of CMake built-in variables
28 * such as CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.
30 class cmLinkDirectoriesCommand
: public cmCommand
34 * This is a virtual constructor for the command.
36 virtual cmCommand
* Clone()
38 return new cmLinkDirectoriesCommand
;
42 * This is called when the command is first encountered in
43 * the CMakeLists.txt file.
45 virtual bool InitialPass(std::vector
<std::string
> const& args
,
46 cmExecutionStatus
&status
);
49 * The name of the command as specified in CMakeList.txt.
51 virtual const char* GetName() { return "link_directories";}
54 * Succinct documentation.
56 virtual const char* GetTerseDocumentation()
58 return "Specify directories in which the linker will look for libraries.";
64 virtual const char* GetFullDocumentation()
67 " link_directories(directory1 directory2 ...)\n"
68 "Specify the paths in which the linker should search for libraries. "
69 "The command will apply only to targets created after it is called.";
72 cmTypeMacro(cmLinkDirectoriesCommand
, cmCommand
);