add cmake for library
add cmake to test