cmInstallTargetGenerator.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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(cmTarget& t, const char* dest,
  24. bool implib = false);
  25. virtual ~cmInstallTargetGenerator();
  26. protected:
  27. virtual void GenerateScript(std::ostream& os);
  28. void PrepareScriptReference(std::ostream& os, cmTarget* target,
  29. const char* place, bool useConfigDir,
  30. bool useSOName);
  31. std::string GetScriptReference(cmTarget* target, const char* place,
  32. bool useSOName);
  33. void AddInstallNamePatchRule(std::ostream& os, const char* destination);
  34. cmTarget* Target;
  35. std::string Destination;
  36. bool ImportLibrary;
  37. };
  38. #endif