Added cmake-style test and link libraries for library