Updated CMakeLists.txt to make the project installable as a library