cmInstallTargetGenerator.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 cmInstallTargetGenerator_h
  14. #define cmInstallTargetGenerator_h
  15. #include "cmInstallGenerator.h"
  16. class cmTarget;
  17. /** \class cmInstallTargetGenerator
  18. * \brief Generate target installation rules.
  19. */
  20. class cmInstallTargetGenerator: public cmInstallGenerator
  21. {
  22. public:
  23. cmInstallTargetGenerator(
  24. cmTarget& t, const char* dest, bool implib,
  25. const char* permissions = "",
  26. std::vector<std::string> const& configurations
  27. = std::vector<std::string>(),
  28. const char* component = ""
  29. );
  30. virtual ~cmInstallTargetGenerator();
  31. protected:
  32. virtual void GenerateScript(std::ostream& os);
  33. void PrepareScriptReference(std::ostream& os, cmTarget* target,
  34. const char* place, bool useConfigDir,
  35. bool useSOName);
  36. std::string GetScriptReference(cmTarget* target, const char* place,
  37. bool useSOName);
  38. void AddInstallNamePatchRule(std::ostream& os, const char* destination);
  39. cmTarget* Target;
  40. std::string Destination;
  41. bool ImportLibrary;
  42. std::string Permissions;
  43. std::vector<std::string> Configurations;
  44. std::string Component;
  45. };
  46. #endif