Added some stuff in cmake to make it compile on other computers + test file