Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmExportLibraryDependencies.h
blob0d78ead249e0308daf57d7fb5df1eac1ace7e62e
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmExportLibraryDependencies.h,v $
5 Language: C++
6 Date: $Date: 2008/02/20 18:36:38 $
7 Version: $Revision: 1.10 $
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
30 public:
31 /**
32 * This is a virtual constructor for the command.
34 virtual cmCommand* Clone()
36 return new cmExportLibraryDependenciesCommand;
39 /**
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);
46 /**
47 * This is called at the end after all the information
48 * specified by the command is accumulated.
50 virtual void FinalPass();
52 /**
53 * The name of the command as specified in CMakeList.txt.
55 virtual const char* GetName() { return "export_library_dependencies";}
57 /**
58 * Succinct documentation.
60 virtual const char* GetTerseDocumentation()
62 return "Deprecated. Use INSTALL(EXPORT) or EXPORT command.";
65 /**
66 * More documentation.
68 virtual const char* GetFullDocumentation()
70 return
71 "This command generates an old-style library dependencies file. "
72 "Projects requiring CMake 2.6 or later should not use the command. "
73 "Use instead the install(EXPORT) command to help export targets "
74 "from an installation tree and the export() command to export targets "
75 "from a build tree.\n"
76 "The old-style library dependencies file does not take into account "
77 "per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES "
78 "target property.\n"
79 " export_library_dependencies(<file> [APPEND])\n"
80 "Create a file named <file> that can be included into a CMake listfile "
81 "with the INCLUDE command. The file will contain a number of SET "
82 "commands that will set all the variables needed for library dependency "
83 "information. This should be the last command in the top level "
84 "CMakeLists.txt file of the project. If the APPEND option is "
85 "specified, the SET commands will be appended to the given file "
86 "instead of replacing it.";
89 /** This command is kept for compatibility with older CMake versions. */
90 virtual bool IsDiscouraged()
92 return true;
95 cmTypeMacro(cmExportLibraryDependenciesCommand, cmCommand);
97 private:
98 std::string Filename;
99 bool Append;
100 void ConstFinalPass() const;
104 #endif