tests: fix out-of-tree builds
authorThierry Reding <treding@nvidia.com>
Tue, 7 Mar 2017 13:39:03 +0000 (14:39 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 8 Mar 2017 13:39:57 +0000 (14:39 +0100)
commitfb96e4f07e61a155213f6ff19633e71c9763bc17
treef1a5f9676d12cbcecd884b4bd7f9c561c3fd8951
parentc2423431b88e4135183e7e5071c405e746ff1dde
tests: fix out-of-tree builds

When building out of tree, the config.h header file and the
libgpiod.la file are generated in the build rather than the
source directory.

While at it, link to libgpiod.la directly rather than via the
-L and -l linker options to enable extra libtool magic.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/unit/Makefile.am