[sw] Fix build.

This commit is contained in:
Egor Pugin 2021-08-12 22:46:45 +03:00
parent 59271470b4
commit 536112ce6f

6
sw.cpp
View File

@ -205,6 +205,7 @@ void build(Solution &s)
auto &t = test.addTarget<ExecutableTarget>(name);
t += cppstd;
t += FileRegex("unittest", name + "_test.*", false);
t += "unittest"_idir;
t += "SW_TESTING"_def;
@ -302,7 +303,6 @@ void build(Solution &s)
"tablefind",
"tablerecog",
"tabvector",
"tatweel",
"textlineprojection",
"tfile",
"unichar",
@ -319,6 +319,10 @@ void build(Solution &s)
auto &dt = add_test("dawg");
dt += Definition("wordlist2dawg_prog=\"" + to_printable_string(normalize_path(wordlist2dawg.getOutputFile())) + "\"");
dt += Definition("dawg2wordlist_prog=\"" + to_printable_string(normalize_path(dawg2wordlist.getOutputFile())) + "\"");
auto &tw = add_test("tatweel");
tw += "unittest/util/.*"_rr;
tw += "unittest/third_party/.*"_rr;
}
}