Changed build structure to http://www.inductiveload.com/posts/cmake-second-step-executablelibrary-project/