cmAuxSourceDirectoryCommand.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 cmAuxSourceDirectoryCommand_h
  12. #define cmAuxSourceDirectoryCommand_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmCommand.h"
  15. /** \class cmAuxSourceDirectoryCommand
  16. * \brief Specify auxiliary source code directories.
  17. *
  18. * cmAuxSourceDirectoryCommand 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 command (cmSubdirCommand).
  21. * A side effect of this command is to create a subdirectory in the build
  22. * directory structure.
  23. */
  24. class cmAuxSourceDirectoryCommand : public cmCommand
  25. {
  26. public:
  27. /**
  28. * This is a virtual constructor for the command.
  29. */
  30. virtual cmCommand* Clone()
  31. {
  32. return new cmAuxSourceDirectoryCommand;
  33. }
  34. /**
  35. * This is called when the command is first encountered in
  36. * the CMakeLists.txt file.
  37. */
  38. virtual bool Invoke(std::vector<std::string>& args);
  39. /**
  40. * The name of the command as specified in CMakeList.txt.
  41. */
  42. virtual const char* GetName() { return "AUX_SOURCE_DIRECTORY";}
  43. /**
  44. * Succinct documentation.
  45. */
  46. virtual const char* GetTerseDocumentation()
  47. {
  48. return "Add all the source files found in the specified\n"
  49. "directory to the build.";
  50. }
  51. /**
  52. * More documentation.
  53. */
  54. virtual const char* GetFullDocumentation()
  55. {
  56. return
  57. "AUX_SOURCE_DIRECTORY(dir)";
  58. }
  59. cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
  60. };
  61. #endif