diff --git a/.cproject b/.cproject
index 285f36fc3..6ef68f8f2 100644
--- a/.cproject
+++ b/.cproject
@@ -315,6 +315,14 @@
true
true
+
+make
+
+clean
+true
+true
+true
+
make
-k
@@ -469,7 +477,6 @@
make
-
testBayesTree.run
true
false
@@ -477,6 +484,7 @@
make
+
testSymbolicBayesNet.run
true
false
@@ -484,7 +492,6 @@
make
-
testSymbolicFactorGraph.run
true
false
@@ -676,7 +683,6 @@
make
-
testGraph.run
true
false
@@ -732,6 +738,7 @@
make
+
testSimulated2D.run
true
false
@@ -779,7 +786,6 @@
make
-
testErrors.run
true
false
diff --git a/wrap/Module.cpp b/wrap/Module.cpp
index 2ce93171b..4606b1b57 100644
--- a/wrap/Module.cpp
+++ b/wrap/Module.cpp
@@ -166,7 +166,8 @@ Module::Module(const string& interfacePath,
/* ************************************************************************* */
void Module::matlab_code(const string& toolboxPath,
const string& nameSpace,
- const string& mexFlags)
+ const string& mexFlags,
+ bool verbose)
{
try {
string installCmd = "install -d " + toolboxPath;
@@ -177,7 +178,7 @@ void Module::matlab_code(const string& toolboxPath,
ofstream ofs(makeFile.c_str());
if(!ofs) throw CantOpenFile(makeFile);
- cerr << "generating " << makeFile << endl;
+ if (verbose) cerr << "generating " << makeFile << endl;
emit_header_comment(ofs,"%");
ofs << "echo on" << endl << endl;
ofs << "toolboxpath = pwd" << endl;
diff --git a/wrap/Module.h b/wrap/Module.h
index 292da4ed6..9699cf6cb 100644
--- a/wrap/Module.h
+++ b/wrap/Module.h
@@ -27,6 +27,7 @@ struct Module {
*/
void matlab_code(const std::string& path,
const std::string& nameSpace,
- const std::string& mexFlags);
+ const std::string& mexFlags,
+ bool verbose);
};
diff --git a/wrap/testWrap.cpp b/wrap/testWrap.cpp
index 7eda9ceb7..586cbd25a 100644
--- a/wrap/testWrap.cpp
+++ b/wrap/testWrap.cpp
@@ -12,6 +12,7 @@
#include "Module.h"
using namespace std;
+static bool verbose = false;
/* ************************************************************************* */
TEST( wrap, ArgumentList ) {
@@ -62,7 +63,7 @@ TEST( wrap, matlab_code ) {
// emit MATLAB code
// make_geometry will not compile, use make testwrap to generate real make
- module.matlab_code("actual", "", "-O5");
+ module.matlab_code("actual", "", "-O5", verbose);
CHECK(files_equal("expected/@Point2/Point2.m" , "actual/@Point2/Point2.m" ));
CHECK(files_equal("expected/@Point2/x.cpp" , "actual/@Point2/x.cpp" ));
diff --git a/wrap/wrap.cpp b/wrap/wrap.cpp
index 07da297ec..60ee3264e 100644
--- a/wrap/wrap.cpp
+++ b/wrap/wrap.cpp
@@ -25,7 +25,7 @@ void generate_matlab_toolbox(const string& interfacePath,
Module module(interfacePath, moduleName);
// emit MATLAB code
- module.matlab_code(toolboxPath,nameSpace,mexFlags);
+ module.matlab_code(toolboxPath,nameSpace,mexFlags,true);
}
/* ************************************************************************* */