tested cpack on debian, more CMakeLists.txt restructuring