update cmakefile for library installation