cmSourceFilesCommand.h 1.7 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 cmSourceFilesCommand_h
  12. #define cmSourceFilesCommand_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmCommand.h"
  15. /** \class cmSourceFilesCommand
  16. * \brief Add source files to the build.
  17. *
  18. * cmSourceFilesCommand adds source files to the build. The source
  19. * files will be added to the current library (if defined by the
  20. * LIBRARY(library) command. Use this command to add source files not
  21. * dependent on other packages (use SOURCE_FILES_REQUIRED() to add
  22. * dependent source files).
  23. *
  24. * \sa cmSourceFilesRequireCommand
  25. */
  26. class cmSourceFilesCommand : public cmCommand
  27. {
  28. public:
  29. /**
  30. * This is a virtual constructor for the command.
  31. */
  32. virtual cmCommand* Clone()
  33. {
  34. return new cmSourceFilesCommand;
  35. }
  36. /**
  37. * This is called when the command is first encountered in
  38. * the CMakeLists.txt file.
  39. */
  40. virtual bool Invoke(std::vector<std::string>& args);
  41. /**
  42. * The name of the command as specified in CMakeList.txt.
  43. */
  44. virtual const char* GetName() { return "SOURCE_FILES";}
  45. /**
  46. * Succinct documentation.
  47. */
  48. virtual const char* GetTerseDocumentation()
  49. {
  50. return "Add a list of source files.";
  51. }
  52. /**
  53. * More documentation.
  54. */
  55. virtual const char* GetFullDocumentation()
  56. {
  57. return
  58. "SOURCE_FILES(file1 file2 ...)";
  59. }
  60. };
  61. #endif