cmLinkDirectoriesCommand.h 2.1 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 cmLinkDirectoriesCommand_h
  12. #define cmLinkDirectoriesCommand_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmCommand.h"
  15. /** \class cmLinkDirectoriesCommand
  16. * \brief Define a list of directories containing files to link.
  17. *
  18. * cmLinkDirectoriesCommand is used to specify a list
  19. * of directories containing files to link into executable(s).
  20. * Note that the command supports the use of CMake built-in variables
  21. * such as CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.
  22. */
  23. class cmLinkDirectoriesCommand : public cmCommand
  24. {
  25. public:
  26. /**
  27. * This is a virtual constructor for the command.
  28. */
  29. virtual cmCommand* Clone()
  30. {
  31. return new cmLinkDirectoriesCommand;
  32. }
  33. /**
  34. * This is called when the command is first encountered in
  35. * the CMakeLists.txt file.
  36. */
  37. virtual bool Invoke(std::vector<std::string>& args);
  38. /**
  39. * This determines if the command gets propagated down
  40. * to makefiles located in subdirectories.
  41. */
  42. virtual bool IsInherited() { return true; }
  43. /**
  44. * The name of the command as specified in CMakeList.txt.
  45. */
  46. virtual const char* GetName() { return "LINK_DIRECTORIES";}
  47. /**
  48. * Succinct documentation.
  49. */
  50. virtual const char* GetTerseDocumentation()
  51. {
  52. return "Specify link directories.";
  53. }
  54. /**
  55. * More documentation.
  56. */
  57. virtual const char* GetFullDocumentation()
  58. {
  59. return
  60. "LINK_DIRECTORIES(directory1 directory2 ...)\n"
  61. "Specify the paths to the libraries that will be linked in.\n"
  62. "The directories can use built in definitions like \n"
  63. "CMAKE_BINARY_DIR and CMAKE_SOURCE_DIR.";
  64. }
  65. cmTypeMacro(cmLinkDirectoriesCommand, cmCommand);
  66. };
  67. #endif