Use OBJECT_DEPENDS to set dependencies.