static build test with cmake