cmCableSourceFilesCommand.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #ifndef cmCableSourceFilesCommand_h
  12. #define cmCableSourceFilesCommand_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmCablePackageEntryCommand.h"
  15. /** \class cmCableSourceFilesCommand
  16. * \brief Define a command that generates a rule for a CABLE Headers block.
  17. *
  18. * cmCableSourceFilesCommand is used to generate a rule in a CABLE
  19. * configuration file to setup a Package's include files.
  20. */
  21. class cmCableSourceFilesCommand : public cmCablePackageEntryCommand
  22. {
  23. public:
  24. /**
  25. * This is a virtual constructor for the command.
  26. */
  27. virtual cmCommand* Clone()
  28. {
  29. return new cmCableSourceFilesCommand;
  30. }
  31. /**
  32. * This is called at the end after all the information
  33. * specified by the command is accumulated. Most commands do
  34. * not implement this method. At this point, reading and
  35. * writing to the cache can be done.
  36. */
  37. virtual void FinalPass();
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. virtual const char* GetName() { return "CABLE_SOURCE_FILES";}
  42. /**
  43. * Succinct documentation.
  44. */
  45. virtual const char* GetTerseDocumentation()
  46. {
  47. return "Define CABLE header file dependencies in a package.";
  48. }
  49. /**
  50. * More documentation.
  51. */
  52. virtual const char* GetFullDocumentation()
  53. {
  54. return
  55. "CABLE_SOURCE_FILES(file1 file2 ...)"
  56. "Generates a Package's Headers block in the CABLE configuration.";
  57. }
  58. virtual bool WriteConfiguration();
  59. bool SourceFileExists(const std::string&) const;
  60. cmTypeMacro(cmCableSourceFilesCommand, cmCableCommand);
  61. protected:
  62. typedef cmCablePackageEntryCommand::Entries Entries;
  63. };
  64. #endif