cmGeneratorTarget.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2012 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGeneratorTarget_h
  11. #define cmGeneratorTarget_h
  12. #include "cmStandardIncludes.h"
  13. class cmCustomCommand;
  14. class cmGlobalGenerator;
  15. class cmLocalGenerator;
  16. class cmMakefile;
  17. class cmSourceFile;
  18. class cmTarget;
  19. class cmGeneratorTarget
  20. {
  21. public:
  22. cmGeneratorTarget(cmTarget*);
  23. cmTarget* Target;
  24. cmMakefile* Makefile;
  25. cmLocalGenerator* LocalGenerator;
  26. cmGlobalGenerator* GlobalGenerator;
  27. /** Sources classified by purpose. */
  28. std::vector<cmSourceFile*> CustomCommands;
  29. std::vector<cmSourceFile*> ExtraSources;
  30. std::vector<cmSourceFile*> HeaderSources;
  31. std::vector<cmSourceFile*> ObjectSources;
  32. std::vector<cmSourceFile*> ExternalObjects;
  33. std::vector<cmSourceFile*> OSXContent;
  34. std::string ModuleDefinitionFile;
  35. std::map<cmSourceFile const*, std::string> Objects;
  36. std::set<cmSourceFile const*> ExplicitObjectName;
  37. private:
  38. void ClassifySources();
  39. cmGeneratorTarget(cmGeneratorTarget const&);
  40. void operator=(cmGeneratorTarget const&);
  41. };
  42. #endif