Fix cmake test builds when building as a sub-project
Merge pull request #39 from arsenm/master

Fix test builds when building as a sub-project