Let CMake build work as a subproject.

Patch contributed by JasonHaslam.
1 file changed