add_library(my_library STATIC)

add_library(${my_library} SHARED)