1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmFindLibraryCommand.h,v $
6 <<<<<<< cmFindLibraryCommand.h
7 Date: $Date: 2008/01/31 12:50:40 $
8 Version: $Revision: 1.27 $
10 Date: $Date: 2008-06-09 15:58:29 $
11 Version: $Revision: 1.28 $
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmFindLibraryCommand_h
23 #define cmFindLibraryCommand_h
25 #include "cmFindBase.h"
28 /** \class cmFindLibraryCommand
29 * \brief Define a command to search for a library.
31 * cmFindLibraryCommand is used to define a CMake variable
32 * that specifies a library. The command searches for a given
33 * file in a list of directories.
35 class cmFindLibraryCommand
: public cmFindBase
38 cmFindLibraryCommand();
40 * This is a virtual constructor for the command.
42 virtual cmCommand
* Clone()
44 return new cmFindLibraryCommand
;
48 * This is called when the command is first encountered in
49 * the CMakeLists.txt file.
51 virtual bool InitialPass(std::vector
<std::string
> const& args
,
52 cmExecutionStatus
&status
);
55 * This determines if the command is invoked when in script mode.
57 virtual bool IsScriptable() { return true; }
60 * The name of the command as specified in CMakeList.txt.
62 virtual const char* GetName() {return "find_library";}
65 * Succinct documentation.
67 virtual const char* GetTerseDocumentation()
69 return "Find a library.";
71 cmTypeMacro(cmFindLibraryCommand
, cmFindBase
);
74 void AddArchitecturePaths(const char* suffix
);
76 std::string
FindLibrary();
78 std::string
FindNormalLibrary();
79 std::string
FindFrameworkLibrary();