update cmake configuration to build and install sanely

works now. modified cmake layout a bit, exploiting the "INSTALL" target. do not need to copy anything manually.