I am using cmake to create my static libraries with something along the lines of
add_library(library library.cpp) install(TARGETS library DESTINATION lib)