cmAddCompileOptionsCommand.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2013 Stephen Kelly <[email protected]>
  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 cmAddCompileOptionsCommand_h
  11. #define cmAddCompileOptionsCommand_h
  12. #include "cmCommand.h"
  13. class cmAddCompileOptionsCommand : public cmCommand
  14. {
  15. public:
  16. /**
  17. * This is a virtual constructor for the command.
  18. */
  19. virtual cmCommand* Clone()
  20. {
  21. return new cmAddCompileOptionsCommand;
  22. }
  23. /**
  24. * This is called when the command is first encountered in
  25. * the CMakeLists.txt file.
  26. */
  27. virtual bool InitialPass(std::vector<std::string> const& args,
  28. cmExecutionStatus &status);
  29. /**
  30. * The name of the command as specified in CMakeList.txt.
  31. */
  32. virtual const char* GetName() const {return "add_compile_options";}
  33. cmTypeMacro(cmAddCompileOptionsCommand, cmCommand);
  34. };
  35. #endif