summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-01-07 16:24:22 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-01-07 16:24:22 (GMT)
commit2c2291bbe03aec2dd6637a5311204f09ff6c58ba (patch)
tree35947ba07840f9ea939e33567c1e6c3e79a37132 /Source/cmSystemTools.h
parenta8620773f3b934752062015a0df9fbe100e10dc7 (diff)
downloadCMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.zip
CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.tar.gz
CMake-2c2291bbe03aec2dd6637a5311204f09ff6c58ba.tar.bz2
ENH: add new feature to ctest so that it can cmake, build and run a test executable
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 939d178..4c5e425 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -81,6 +81,12 @@ public:
*/
static void Message(const char* m, const char* title=0);
+ ///! Send a string to stdout
+ static void Stdout(const char* s);
+ static void Stdout(const char* s, int length);
+ typedef void (*StdoutCallback)(const char*, int length, void*);
+ static void SetStdoutCallback(StdoutCallback, void* clientData=0);
+
///! Return true if there was an error at any point.
static bool GetErrorOccuredFlag()
{
@@ -258,7 +264,9 @@ private:
static bool s_DisableMessages;
static bool s_DisableRunCommandOutput;
static ErrorCallback s_ErrorCallback;
+ static StdoutCallback s_StdoutCallback;
static void* s_ErrorCallbackClientData;
+ static void* s_StdoutCallbackClientData;
static std::string s_Windows9xComspecSubstitute;
};