Working version of CMakeLists.txt. Project is currently compilable via cmake make (no install however) on my Ubuntu mashine. Windows and other linux distros (CentOS currently) are to be tested