summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-22 22:07:02 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-22 22:07:02 -0500
commit007d2bbc50618a118fd18a203b97e6779ca58588 (patch)
treec6a259823705acf9840ce2be52c36f61116153d7
parent183273bea2b093043abb06845dffa7b902b6d273 (diff)
downloadcmake-007d2bbc50618a118fd18a203b97e6779ca58588.tar.gz
ENH: Make more commands scriptable
-rw-r--r--Source/cmCMakeMinimumRequired.h5
-rw-r--r--Source/cmConfigureFileCommand.h5
-rw-r--r--Source/cmElseCommand.h5
-rw-r--r--Source/cmEndIfCommand.h5
-rw-r--r--Source/cmExecProgramCommand.h5
-rw-r--r--Source/cmFindFileCommand.h5
-rw-r--r--Source/cmFindLibraryCommand.h5
-rw-r--r--Source/cmFindPathCommand.h5
-rw-r--r--Source/cmFindProgramCommand.h5
-rw-r--r--Source/cmGetFilenameComponentCommand.h5
-rw-r--r--Source/cmMakeDirectoryCommand.h5
-rw-r--r--Source/cmRemoveCommand.h5
-rw-r--r--Source/cmSeparateArgumentsCommand.h5
-rw-r--r--Source/cmWriteFileCommand.h5
14 files changed, 70 insertions, 0 deletions
diff --git a/Source/cmCMakeMinimumRequired.h b/Source/cmCMakeMinimumRequired.h
index d227ec69eb..c947644705 100644
--- a/Source/cmCMakeMinimumRequired.h
+++ b/Source/cmCMakeMinimumRequired.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.
*/
virtual const char* GetName() {return "CMAKE_MINIMUM_REQUIRED";}
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h
index 5eb4105965..e9a01b379b 100644
--- a/Source/cmConfigureFileCommand.h
+++ b/Source/cmConfigureFileCommand.h
@@ -39,6 +39,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.
*/
virtual const char* GetTerseDocumentation()
diff --git a/Source/cmElseCommand.h b/Source/cmElseCommand.h
index 45d7b39306..fa2b36b8ef 100644
--- a/Source/cmElseCommand.h
+++ b/Source/cmElseCommand.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.
*/
virtual const char* GetName() { return "ELSE";}
diff --git a/Source/cmEndIfCommand.h b/Source/cmEndIfCommand.h
index 1e47217149..230637d45b 100644
--- a/Source/cmEndIfCommand.h
+++ b/Source/cmEndIfCommand.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.
*/
virtual const char* GetName() { return "ENDIF";}
diff --git a/Source/cmExecProgramCommand.h b/Source/cmExecProgramCommand.h
index 274d8e1e6d..8fc9c7dfd8 100644
--- a/Source/cmExecProgramCommand.h
+++ b/Source/cmExecProgramCommand.h
@@ -50,6 +50,11 @@ public:
{return "EXEC_PROGRAM";}
/**
+ * This determines if the command is invoked when in script mode.
+ */
+ virtual bool IsScriptable() { return true; }
+
+ /**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
diff --git a/Source/cmFindFileCommand.h b/Source/cmFindFileCommand.h
index 800cf0cebd..21c07eb000 100644
--- a/Source/cmFindFileCommand.h
+++ b/Source/cmFindFileCommand.h
@@ -51,6 +51,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.
*/
virtual const char* GetName() { return "FIND_FILE";}
diff --git a/Source/cmFindLibraryCommand.h b/Source/cmFindLibraryCommand.h
index 9a3998570f..dc1d219d91 100644
--- a/Source/cmFindLibraryCommand.h
+++ b/Source/cmFindLibraryCommand.h
@@ -51,6 +51,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.
*/
virtual const char* GetName() {return "FIND_LIBRARY";}
diff --git a/Source/cmFindPathCommand.h b/Source/cmFindPathCommand.h
index 34d91a4d3a..4fa4c75b8e 100644
--- a/Source/cmFindPathCommand.h
+++ b/Source/cmFindPathCommand.h
@@ -51,6 +51,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.
*/
virtual const char* GetName() {return "FIND_PATH";}
diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h
index 221e475081..83d840b57a 100644
--- a/Source/cmFindProgramCommand.h
+++ b/Source/cmFindProgramCommand.h
@@ -51,6 +51,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.
*/
virtual const char* GetName() { return "FIND_PROGRAM";}
diff --git a/Source/cmGetFilenameComponentCommand.h b/Source/cmGetFilenameComponentCommand.h
index 78616060cc..4aee4721fc 100644
--- a/Source/cmGetFilenameComponentCommand.h
+++ b/Source/cmGetFilenameComponentCommand.h
@@ -49,6 +49,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.
*/
virtual const char* GetName() { return "GET_FILENAME_COMPONENT";}
diff --git a/Source/cmMakeDirectoryCommand.h b/Source/cmMakeDirectoryCommand.h
index 908bb016b1..a25a8d4477 100644
--- a/Source/cmMakeDirectoryCommand.h
+++ b/Source/cmMakeDirectoryCommand.h
@@ -51,6 +51,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.
*/
virtual const char* GetTerseDocumentation()
diff --git a/Source/cmRemoveCommand.h b/Source/cmRemoveCommand.h
index 4e926b2d59..82d1592527 100644
--- a/Source/cmRemoveCommand.h
+++ b/Source/cmRemoveCommand.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.
*/
virtual const char* GetName() {return "REMOVE";}
diff --git a/Source/cmSeparateArgumentsCommand.h b/Source/cmSeparateArgumentsCommand.h
index 8974e891df..64d669f824 100644
--- a/Source/cmSeparateArgumentsCommand.h
+++ b/Source/cmSeparateArgumentsCommand.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.
*/
virtual const char* GetName() {return "SEPARATE_ARGUMENTS";}
diff --git a/Source/cmWriteFileCommand.h b/Source/cmWriteFileCommand.h
index 0c52aed8f2..ef2561d270 100644
--- a/Source/cmWriteFileCommand.h
+++ b/Source/cmWriteFileCommand.h
@@ -41,6 +41,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.
*/
virtual const char* GetName() { return "WRITE_FILE";}