CMakeLists.txt - works on OSX, not tested yet on windows