Use dependency link arguments in C# targets
This commit is contained in:
parent
8c376a7fe4
commit
c572d222da
|
@ -0,0 +1,7 @@
|
||||||
|
project('C# pkg-config', 'cs')
|
||||||
|
|
||||||
|
nunit_dep = dependency('nunit')
|
||||||
|
nunit_runner = find_program('nunit-console')
|
||||||
|
|
||||||
|
test_lib = library('test_lib', 'test-lib.cs', dependencies: nunit_dep)
|
||||||
|
test('nunit test', nunit_runner, args: test_lib)
|
|
@ -0,0 +1,11 @@
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
[TestFixture]
|
||||||
|
public class NUnitTest
|
||||||
|
{
|
||||||
|
[Test]
|
||||||
|
public void Test()
|
||||||
|
{
|
||||||
|
Assert.AreEqual(1 + 1, 2);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue