Fix incorrect CMake test directory when building as a subproject

This is an extension of e800985adbb0820c5692ea016b3a8499d69a73dc
Merge pull request #91 from chenxiaolong/includes

Fix incorrect CMake test directory when building as a subproject