Add Progress support

This commit is contained in:
Andy Cedilnik 2002-11-14 17:12:38 -05:00
parent 435282e538
commit 9f6e61361c
1 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "cmListFileCache.h" #include "cmListFileCache.h"
int do_cmake(int ac, char** av); int do_cmake(int ac, char** av);
void updateProgress(const char *msg, float prog, void *cd);
int main(int ac, char** av) int main(int ac, char** av)
{ {
@ -68,5 +69,14 @@ int do_cmake(int ac, char** av)
return 0; return 0;
} }
cmake cm; cmake cm;
cm.SetProgressCallback(updateProgress, 0);
return cm.Run(args); return cm.Run(args);
} }
void updateProgress(const char *msg, float prog, void*)
{
if ( prog < 0 )
{
cout << "-- " << msg << endl;
}
}