cmWin32IncludeDirectoryCommand.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 cmWin32IncludeDirectoryCommand_h
  12. #define cmWin32IncludeDirectoryCommand_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmCommand.h"
  15. /** \class cmWin32IncludeDirectoryCommand
  16. * \brief Add Win32 include directories to the build.
  17. *
  18. * cmWin32IncludeDirectoryCommand is used to specify directory locations
  19. * to search for included files under a Windows system.
  20. */
  21. class cmWin32IncludeDirectoryCommand : public cmCommand
  22. {
  23. public:
  24. /**
  25. * Constructor
  26. */
  27. cmWin32IncludeDirectoryCommand();
  28. /**
  29. * This is a virtual constructor for the command.
  30. */
  31. virtual cmCommand* Clone()
  32. {
  33. return new cmWin32IncludeDirectoryCommand;
  34. }
  35. /**
  36. * This is called when the command is first encountered in
  37. * the CMakeLists.txt file.
  38. */
  39. virtual bool Invoke(std::vector<std::string>& args);
  40. /**
  41. * This determines if the command gets propagated down
  42. * to makefiles located in subdirectories.
  43. */
  44. virtual bool IsInherited() {return true;}
  45. /**
  46. * The name of the command as specified in CMakeList.txt.
  47. */
  48. virtual const char* GetName() { return "WIN32_INCLUDE_DIRECTORIES";}
  49. /**
  50. * Succinct documentation.
  51. */
  52. virtual const char* GetTerseDocumentation()
  53. {
  54. return "Add Win32 include directories to the build.";
  55. }
  56. /**
  57. * More documentation.
  58. */
  59. virtual const char* GetFullDocumentation()
  60. {
  61. return
  62. "WIN32_INCLUDE_DIRECTORIES(dir1 dir2 ...)";
  63. }
  64. cmTypeMacro(cmWin32IncludeDirectoryCommand, cmCommand);
  65. };
  66. #endif