CMake installation and packaging improvement

I have updated the CMake configurations so that when you type "make install", the resulting software is usable by the end users immediately.