summaryrefslogtreecommitdiffstats
path: root/tests/multiple_files/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple_files/SConscript')
-rw-r--r--tests/multiple_files/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/multiple_files/SConscript b/tests/multiple_files/SConscript
index 1689f482..b1281e17 100644
--- a/tests/multiple_files/SConscript
+++ b/tests/multiple_files/SConscript
@@ -4,10 +4,13 @@ Import("env")
incpath = env.Clone()
incpath.Append(PROTOCPATH = '#multiple_files')
+incpath.Append(CPPPATH = '$BUILD/multiple_files')
incpath.NanopbProto(["multifile1", "multifile1.options"])
incpath.NanopbProto("multifile2")
-test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c", "multifile2.pb.c"])
+incpath.NanopbProto("subdir/multifile2")
+test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c",
+ "multifile2.pb.c", "subdir/multifile2.pb.c"])
env.RunTest(test)