Adding some CMake logic to make this build in a standalone manner.

This allows a basic deploy to work without issue.