Fix installation with cmake

* Check installation with travis
* Fix installation with cmake