cmAuxSourceDirectoryCommand.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmAuxSourceDirectoryCommand_h
  14. #define cmAuxSourceDirectoryCommand_h
  15. #include "cmStandardIncludes.h"
  16. #include "cmCommand.h"
  17. /** \class cmAuxSourceDirectoryCommand
  18. * \brief Specify auxiliary source code directories.
  19. *
  20. * cmAuxSourceDirectoryCommand specifies source code directories
  21. * that must be built as part of this build process. This directories
  22. * are not recursively processed like the SUBDIR command (cmSubdirCommand).
  23. * A side effect of this command is to create a subdirectory in the build
  24. * directory structure.
  25. */
  26. class cmAuxSourceDirectoryCommand : public cmCommand
  27. {
  28. public:
  29. /**
  30. * This is a virtual constructor for the command.
  31. */
  32. virtual cmCommand* Clone()
  33. {
  34. return new cmAuxSourceDirectoryCommand;
  35. }
  36. /**
  37. * This is called when the command is first encountered in
  38. * the CMakeLists.txt file.
  39. */
  40. virtual bool InitialPass(std::vector<std::string> const& args);
  41. /**
  42. * The name of the command as specified in CMakeList.txt.
  43. */
  44. virtual const char* GetName() { return "AUX_SOURCE_DIRECTORY";}
  45. /**
  46. * Succinct documentation.
  47. */
  48. virtual const char* GetTerseDocumentation()
  49. {
  50. return "Find all source files in a directory.";
  51. }
  52. /**
  53. * More documentation.
  54. */
  55. virtual const char* GetFullDocumentation()
  56. {
  57. return
  58. " AUX_SOURCE_DIRECTORY(dir VARIABLE)\n"
  59. "Collects the names of all the source files in the specified "
  60. "directory and stores the list in the variable provided.";
  61. }
  62. cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
  63. };
  64. #endif