cmAuxSourceDirectoryCommand.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 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 cmAuxSourceDirectoryCommand_h
  11. #define cmAuxSourceDirectoryCommand_h
  12. #include "cmCommand.h"
  13. /** \class cmAuxSourceDirectoryCommand
  14. * \brief Specify auxiliary source code directories.
  15. *
  16. * cmAuxSourceDirectoryCommand specifies source code directories
  17. * that must be built as part of this build process. This directories
  18. * are not recursively processed like the SUBDIR command (cmSubdirCommand).
  19. * A side effect of this command is to create a subdirectory in the build
  20. * directory structure.
  21. */
  22. class cmAuxSourceDirectoryCommand : public cmCommand
  23. {
  24. public:
  25. /**
  26. * This is a virtual constructor for the command.
  27. */
  28. virtual cmCommand* Clone()
  29. {
  30. return new cmAuxSourceDirectoryCommand;
  31. }
  32. /**
  33. * This is called when the command is first encountered in
  34. * the CMakeLists.txt file.
  35. */
  36. virtual bool InitialPass(std::vector<std::string> const& args,
  37. cmExecutionStatus &status);
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. virtual std::string GetName() const { return "aux_source_directory";}
  42. cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
  43. };
  44. #endif