1
1
/*=========================================================================
3
Program: Insight Segmentation & Registration Toolkit
3
Program: CMake - Cross-Platform Makefile Generator
4
4
Module: $RCSfile: cmOutputRequiredFilesCommand.h,v $
6
Date: $Date: 2001/09/20 19:08:27 $
7
Version: $Revision: 1.2 $
9
Copyright (c) 2001 Insight Consortium
12
Redistribution and use in source and binary forms, with or without
13
modification, are permitted provided that the following conditions are met:
15
* Redistributions of source code must retain the above copyright notice,
16
this list of conditions and the following disclaimer.
18
* Redistributions in binary form must reproduce the above copyright notice,
19
this list of conditions and the following disclaimer in the documentation
20
and/or other materials provided with the distribution.
22
* The name of the Insight Consortium, nor the names of any consortium members,
23
nor of any contributors, may be used to endorse or promote products derived
24
from this software without specific prior written permission.
26
* Modified source versions must be plainly marked as such, and must not be
27
misrepresented as being the original software.
29
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
30
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
33
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
36
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
37
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6
Date: $Date: 2004/02/22 18:14:59 $
7
Version: $Revision: 1.8 $
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.
40
16
=========================================================================*/
41
17
#ifndef cmOutputRequiredFilesCommand_h
42
18
#define cmOutputRequiredFilesCommand_h
44
#include "cmStandardIncludes.h"
45
20
#include "cmCommand.h"
21
#include "cmMakeDepend.h"
47
23
/** \class cmOutputRequiredFilesCommand
48
24
* \brief Output a list of required files for a source file
87
63
virtual const char* GetFullDocumentation()
90
"OUTPUT_REQUIRED_FILES(srcfile outputfile)\n"
66
" OUTPUT_REQUIRED_FILES(srcfile outputfile)\n"
91
67
"Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible.";
94
70
cmTypeMacro(cmOutputRequiredFilesCommand, cmCommand);
71
void ListDependencies(cmDependInformation const *info,
73
std::set<cmDependInformation const*> *visited);
96
76
std::string m_File;
97
77
std::string m_OutputFile;