cmAuxSourceDirectoryRule.h 1.9 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 cmAuxSourceDirectoryRule_h
  12. #define cmAuxSourceDirectoryRule_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmRuleMaker.h"
  15. /** \class cmAuxSourceDirectoryRule
  16. * \brief Specify auxiliary source code directories.
  17. *
  18. * cmAuxSourceDirectoryRule specifies source code directories
  19. * that must be built as part of this build process. This directories
  20. * are not recursively processed like the SUBDIR rule (cmSubdirRule).
  21. * A side effect of this rule is to create a subdirectory in the build
  22. * directory structure.
  23. */
  24. class cmAuxSourceDirectoryRule : public cmRuleMaker
  25. {
  26. public:
  27. /**
  28. * This is a virtual constructor for the rule.
  29. */
  30. virtual cmRuleMaker* Clone()
  31. {
  32. return new cmAuxSourceDirectoryRule;
  33. }
  34. /**
  35. * This is called when the rule is first encountered in
  36. * the CMakeLists.txt file.
  37. */
  38. virtual bool Invoke(std::vector<std::string>& args);
  39. /**
  40. * This is called at the end after all the information
  41. * specified by the rules is accumulated.
  42. */
  43. virtual void FinalPass() { }
  44. /**
  45. * The name of the rule as specified in CMakeList.txt.
  46. */
  47. virtual const char* GetName() { return "AUX_SOURCE_DIRECTORY";}
  48. /**
  49. * Succinct documentation.
  50. */
  51. virtual const char* TerseDocumentation()
  52. {
  53. return "Add all the source files found in the specified directory to\n"
  54. " the build.";
  55. }
  56. /**
  57. * More documentation.
  58. */
  59. virtual const char* FullDocumentation()
  60. {
  61. return
  62. "AUX_SOURCE_DIRECTORY(dir)";
  63. }
  64. };
  65. #endif