1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmExportLibraryDependencies.h,v $
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.9 $
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 cmExportLibraryDependenciesCommand_h
18 #define cmExportLibraryDependenciesCommand_h
20 #include "cmCommand.h"
22 /** \class cmExportLibraryDependenciesCommand
23 * \brief Add a test to the lists of tests to run.
25 * cmExportLibraryDependenciesCommand adds a test to the list of tests to run
28 class cmExportLibraryDependenciesCommand
: public cmCommand
32 * This is a virtual constructor for the command.
34 virtual cmCommand
* Clone()
36 return new cmExportLibraryDependenciesCommand
;
40 * This is called when the command is first encountered in
41 * the CMakeLists.txt file.
43 virtual bool InitialPass(std::vector
<std::string
> const& args
,
44 cmExecutionStatus
&status
);
47 * This is called at the end after all the information
48 * specified by the command is accumulated.
50 virtual void FinalPass();
53 * The name of the command as specified in CMakeList.txt.
55 virtual const char* GetName() { return "export_library_dependencies";}
58 * Succinct documentation.
60 virtual const char* GetTerseDocumentation()
63 "Write out the dependency information for all targets of a project.";
69 virtual const char* GetFullDocumentation()
72 " export_library_dependencies(<file> [APPEND])\n"
73 "Create a file named <file> that can be included into a CMake listfile "
74 "with the INCLUDE command. The file will contain a number of SET "
75 "commands that will set all the variables needed for library dependency "
76 "information. This should be the last command in the top level "
77 "CMakeLists.txt file of the project. If the APPEND option is "
78 "specified, the SET commands will be appended to the given file "
79 "instead of replacing it.";
82 cmTypeMacro(cmExportLibraryDependenciesCommand
, cmCommand
);
87 void ConstFinalPass() const;