Properly setup the library in CMakeLists.