cmake: append a toolset to cmocka's build only when there is one

... otherwise cmake will trip over itself miserably.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
don't crap ourselfs when building under non win32

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
drop the visibility-hidden flag from global scope...

perhaps we can properly annotate the waffle_test.so symbols and keep it in ?

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
cmake: add_subdirectory(cmocka)

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Revert "cmake: add_subdirectory(cmocka)"

Does now work yet, nor does it seems like the correct solution.
Perhaps use ExternalProject_Add() ?

This reverts commit a0bbf6f152a566ec265e322d73a9368670714c32.
Revert "drop the visibility-hidden flag from global scope..."

Let see if we can fix this in a easy manner - make waffle_test a stattic library.

This reverts commit 43aa93336e001506ccb74d5e4fb1126d6df59574.
waffle_test: build as a static library

Will allow us to move the -fvisiblity=hidden to a global scale,
without breaking the tests. Makes little sense to have a shared
library only for testing perposes anyway.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>