Browse Source

ENH: Make more commands scriptable

Andy Cedilnik 22 years ago
parent
commit
007d2bbc50

+ 5 - 0
Source/cmCMakeMinimumRequired.h

@@ -47,6 +47,11 @@ public:
    */
   virtual bool IsInherited() {return true;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmConfigureFileCommand.h

@@ -38,6 +38,11 @@ public:
    */
   virtual const char* GetName() { return "CONFIGURE_FILE";}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * Succinct documentation.
    */

+ 5 - 0
Source/cmElseCommand.h

@@ -47,6 +47,11 @@ public:
    */
   virtual bool IsInherited() {return true;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmEndIfCommand.h

@@ -47,6 +47,11 @@ public:
    */
   virtual bool IsInherited() {return true;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmExecProgramCommand.h

@@ -49,6 +49,11 @@ public:
   virtual const char* GetName() 
     {return "EXEC_PROGRAM";}
   
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * Succinct documentation.
    */

+ 5 - 0
Source/cmFindFileCommand.h

@@ -50,6 +50,11 @@ public:
    */
   virtual bool IsInherited() { return false;  }
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmFindLibraryCommand.h

@@ -50,6 +50,11 @@ public:
    */
   virtual bool IsInherited() {return false;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmFindPathCommand.h

@@ -50,6 +50,11 @@ public:
    */
   virtual bool IsInherited() {return false;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmFindProgramCommand.h

@@ -50,6 +50,11 @@ public:
    */
   virtual bool IsInherited() { return false;  }
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmGetFilenameComponentCommand.h

@@ -48,6 +48,11 @@ public:
    */
   virtual bool IsInherited() { return true;  }
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmMakeDirectoryCommand.h

@@ -50,6 +50,11 @@ public:
    */
   virtual const char* GetName() { return "MAKE_DIRECTORY";}
   
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * Succinct documentation.
    */

+ 5 - 0
Source/cmRemoveCommand.h

@@ -47,6 +47,11 @@ public:
    */
   virtual bool IsInherited() {return true;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmSeparateArgumentsCommand.h

@@ -47,6 +47,11 @@ public:
    */
   virtual bool IsInherited() {return true;}
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */

+ 5 - 0
Source/cmWriteFileCommand.h

@@ -40,6 +40,11 @@ public:
    */
   virtual bool InitialPass(std::vector<std::string> const& args);
 
+  /**
+   * This determines if the command is invoked when in script mode.
+   */
+  virtual bool IsScriptable() { return true; }
+
   /**
    * The name of the command as specified in CMakeList.txt.
    */