diff --git a/build/Tests.lua b/build/Tests.lua index 7f976f3d..46d01900 100644 --- a/build/Tests.lua +++ b/build/Tests.lua @@ -68,7 +68,7 @@ function SetupTestGeneratorBuildEvent(name) end end -function SetupTestNativeProject(name) +function SetupTestNativeProject(name, depends) if string.starts(action, "vs") and not os.is_windows() then return end @@ -82,6 +82,10 @@ function SetupTestNativeProject(name) flags { common_flags } files { "**.h", "**.cpp" } + + if depends ~= nil then + links { depends } + end end function LinkNUnit() diff --git a/tests/NamespacesDerived/premake4.lua b/tests/NamespacesDerived/premake4.lua index de66eb52..4715ed5e 100644 --- a/tests/NamespacesDerived/premake4.lua +++ b/tests/NamespacesDerived/premake4.lua @@ -1,2 +1,4 @@ group "Tests/Namespaces" - SetupTestCSharp("NamespacesDerived") \ No newline at end of file + SetupTestGeneratorProject("NamespacesDerived") + SetupTestNativeProject("NamespacesDerived", "NamespacesBase.Native") + SetupTestProjectsCSharp("NamespacesDerived") \ No newline at end of file