Fixed CMakeLists.txt to correctly link
More demo code.