EflMacros: build tests before running them.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 23 Jan 2017 16:02:08 +0000 (14:02 -0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Mon, 23 Jan 2017 17:23:41 +0000 (18:23 +0100)
commitb10fc88bb0d5c6c31a797ab4e2010cdcac37b903
treebe39ea30456a367497873fa0139945b4b0e0af7f
parentf009bc8b2bd3f64591ec907c864f38c4f4d13824
EflMacros: build tests before running them.

'make test' wouldn't build the test, which is annoying.

There is no way to add dependencies to reserved target 'test'. The
test is also executed by another tool (ctest), not cmake itself, then
we must create a test '-build' that is actually calling back cmake to
compile the test suite and make it a dependency for the test itself.

Nasty but improves usability.
cmake/helpers/EflMacros.cmake