Fixed CMakeLists.txt to allow correct compile and build