Add common definitions automatically in add_library