cmExecutablesRule.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 cmExecutablesRule_h
  12. #define cmExecutablesRule_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmRuleMaker.h"
  15. /** \class cmExecutablesRule
  16. * \brief Defines a list of executables to build.
  17. *
  18. * cmExecutablesRule defines a list of executable (i.e., test)
  19. * programs to create.
  20. */
  21. class cmExecutablesRule : public cmRuleMaker
  22. {
  23. public:
  24. /**
  25. * This is a virtual constructor for the rule.
  26. */
  27. virtual cmRuleMaker* Clone()
  28. {
  29. return new cmExecutablesRule;
  30. }
  31. /**
  32. * This is called when the rule is first encountered in
  33. * the CMakeLists.txt file.
  34. */
  35. virtual bool Invoke(std::vector<std::string>& args);
  36. /**
  37. * This is called at the end after all the information
  38. * specified by the rules is accumulated.
  39. */
  40. virtual void FinalPass() { }
  41. /**
  42. * The name of the rule as specified in CMakeList.txt.
  43. */
  44. virtual const char* GetName() { return "EXECUTABLES";}
  45. /**
  46. * Succinct documentation.
  47. */
  48. virtual const char* TerseDocumentation()
  49. {
  50. return "Add a list of executables files.";
  51. }
  52. /**
  53. * More documentation.
  54. */
  55. virtual const char* FullDocumentation()
  56. {
  57. return
  58. "EXECUTABLES(file1 file2 ...)";
  59. }
  60. };
  61. #endif