use CMake's add_library(STATIC) to keep from building library for each example