set up unit-testing with libcheck and primitive build with cmake