~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Source/cmFindPathCommand.h

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2006-06-18 16:34:11 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060618163411-pi234s3v6jwlcmof
Tags: 2.4.2-1
* New upstream release (Closes: #338324)
* Put cmake .vim files into /usr/share/vim/addons/plugin/
  where they can be used. (Closes: #366663)
* Install cmake-mode.el so it can be used. (Closes: #366664)
* Ensure cmake FindKDE locates KDE libraries on Debian
  based distributions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   CMake - Cross-Platform Makefile Generator
4
4
  Module:    $RCSfile: cmFindPathCommand.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2005/03/18 15:41:40 $
7
 
  Version:   $Revision: 1.13 $
 
6
  Date:      $Date: 2006/03/02 18:30:22 $
 
7
  Version:   $Revision: 1.16 $
8
8
 
9
9
  Copyright (c) 2002 Kitware, Inc., Insight Consortium.  All rights reserved.
10
10
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17
17
#ifndef cmFindPathCommand_h
18
18
#define cmFindPathCommand_h
19
19
 
20
 
#include "cmCommand.h"
 
20
#include "cmFindBase.h"
21
21
 
22
22
 
23
23
/** \class cmFindPathCommand
27
27
 * that specifies a library. The command searches for a given
28
28
 * file in a list of directories.
29
29
 */
30
 
class cmFindPathCommand : public cmCommand
 
30
class cmFindPathCommand : public cmFindBase
31
31
{
32
32
public:
 
33
  cmFindPathCommand();
33
34
  /**
34
35
   * This is a virtual constructor for the command.
35
36
   */
61
62
    {
62
63
    return "Find the directory containing a file.";
63
64
    }
64
 
  
65
 
  /**
66
 
   * More documentation.
67
 
   */
68
 
  virtual const char* GetFullDocumentation()
69
 
    {
70
 
    return
71
 
      "  FIND_PATH(<VAR> fileName path1 [path2 ...]\n"
72
 
      "            [DOC \"docstring\"])\n"
73
 
      "Find the directory containing a file named by fileName.  Paths "
74
 
      "are searched in the order specified.  A cache entry named by "
75
 
      "<VAR> is created to store the result.  If the file is not "
76
 
      "found, the result will be <VAR>-NOTFOUND.  If DOC is specified "
77
 
      "then the next argument is treated as a documentation string for "
78
 
      "the cache entry <VAR>.  The environment variable CMAKE_INCLUDE_PATH "
79
 
      "is searched as well as the PATH variable.\n";
80
 
    }
81
 
  
82
 
  cmTypeMacro(cmFindPathCommand, cmCommand);
 
65
 
 
66
  std::string FindHeaderInFramework( std::string& file,
 
67
                                     std::string& dir);
 
68
  virtual const char* GetFullDocumentation();
 
69
  cmTypeMacro(cmFindPathCommand, cmFindBase);
 
70
  bool IncludeFileInPath;
 
71
  bool ExtraDocAdded;
83
72
};
84
73
 
85
74