You can’t use a r346 driver with M1060. Compatibility with those GPUs (cc1.x) was dropped after r343 drivers.
You should be able to install an earlier driver on Centos7. I’m not sure why you chose 340.24, I would try the 340.93 which is the “current” driver for M1060 on 64-bit linux:
(you can discover this by finding the driver for M1060 on www.nvidia.com)
If you have a messed up environment (previously installed/broken drivers, mixed runfile/package manager installs), you may want to start with a clean load of Centos7 (I would use latest, e.g. 7/1511 or newer)
With respect to CUDA, CentOS 7 is not an officially supported distro for CUDA 6.5. So things may or may not work (e.g. I’m not sure about gcc compatibility). If you want to proceed/try, after the driver install, use the latest CentOS runfile installer for CUDA 6.5. Decline the option to install the driver bundled with it.
CUDA 6.5 page: https://developer.nvidia.com/cuda-toolkit-65
latest CUDA 6.5 CentOS (6) runfile installer: http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run
If linux distro is not critical to you, you should certainly be able to get things to work by choosing CentOS 6.