cmake: Added test, install, and documentation