cmBuildSharedLibrariesCommand.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef cmBuildSharedLibrariesCommand_h
  2. #define cmBuildSharedLibrariesCommand_h
  3. #include "cmStandardIncludes.h"
  4. #include "cmCommand.h"
  5. /** \class cmBuildSharedLibrariesCommand
  6. * \brief Define a command that searches for an include file.
  7. *
  8. * cmBuildSharedLibrariesCommand is used to define a CMake variable include
  9. * path location by specifying a file and list of directories.
  10. */
  11. class cmBuildSharedLibrariesCommand : public cmCommand
  12. {
  13. public:
  14. /**
  15. * This is a virtual constructor for the command.
  16. */
  17. virtual cmCommand* Clone()
  18. {
  19. return new cmBuildSharedLibrariesCommand;
  20. }
  21. /**
  22. * This is called when the command is first encountered in
  23. * the CMakeLists.txt file.
  24. */
  25. virtual bool Invoke(std::vector<std::string>& args);
  26. /**
  27. * This determines if the command gets propagated down
  28. * to makefiles located in subdirectories.
  29. */
  30. virtual bool IsInherited()
  31. {return true;}
  32. /**
  33. * The name of the command as specified in CMakeList.txt.
  34. */
  35. virtual const char* GetName() { return "BUILD_SHARED_LIBRARIES";}
  36. /**
  37. * Succinct documentation.
  38. */
  39. virtual const char* GetTerseDocumentation()
  40. {
  41. return "Build shared libraries instead of static";
  42. }
  43. /**
  44. * More documentation.
  45. */
  46. virtual const char* GetFullDocumentation()
  47. {
  48. return
  49. "BUILD_SHARED_LIBRARIES()";
  50. }
  51. private:
  52. };
  53. #endif