Convert test project from an executable into a library