summaryrefslogtreecommitdiff
path: root/default.bld
blob: 8b2947acb105a3527e2ada9f84c2dcdee4f00084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
target "libneural.a"
{
	rule "lib";
	input files("src/*.cpp");

	CXXFLAGS += "-I. -ggdb";
}

for src in files("src/tests/*.cpp") do
{
	target src.replace("src/","").replace(".cpp","")
	{
		rule "exe";
		input src;
		requires "libneural.a";

		CXXFLAGS += "-I. -ggdb";
		LDFLAGS += "-L. -lneural -lbu++ -ggdb";
	}
}

for dir in dirs("src/tests/*") do
{
	target dir.replace("src/","")
	{
		rule "exe";
		input files( dir + "/*.cpp");
		requires "libneural.a";

		CXXFLAGS += "-I. -ggdb";
		LDFLAGS += "-L. -lneural -lbu++ -lpthread -ggdb";
	}
}

target "tests/pic"
{
	LDFLAGS += "-lpng -lz";
}