Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmFindLibraryCommand.h
blob3adfd209523ca9807c5e75698b1b3e8e3b2766b5
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmFindLibraryCommand.h,v $
5 Language: C++
6 <<<<<<< cmFindLibraryCommand.h
7 Date: $Date: 2008/01/31 12:50:40 $
8 Version: $Revision: 1.27 $
9 =======
10 Date: $Date: 2008-06-09 15:58:29 $
11 Version: $Revision: 1.28 $
12 >>>>>>> 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
37 public:
38 cmFindLibraryCommand();
39 /**
40 * This is a virtual constructor for the command.
42 virtual cmCommand* Clone()
44 return new cmFindLibraryCommand;
47 /**
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);
54 /**
55 * This determines if the command is invoked when in script mode.
57 virtual bool IsScriptable() { return true; }
59 /**
60 * The name of the command as specified in CMakeList.txt.
62 virtual const char* GetName() {return "find_library";}
64 /**
65 * Succinct documentation.
67 virtual const char* GetTerseDocumentation()
69 return "Find a library.";
71 cmTypeMacro(cmFindLibraryCommand, cmFindBase);
73 protected:
74 void AddArchitecturePaths(const char* suffix);
75 void AddLib64Paths();
76 std::string FindLibrary();
77 private:
78 std::string FindNormalLibrary();
79 std::string FindFrameworkLibrary();
84 #endif