Like classical optical design, joint digital-optical design of complex lenses requires a skilled optical designer helped by powerful optical design software. Consequently, if optimization criteria have to be modified to take into account digital post-processing, the convenient optimization environment provided by commercial optical design software needs to be preserved. For that purpose, we define a joint-design criterion based on a merit function that contains terms classically implemented in optical design software but used in a non-standard way. After validation on a simple design problem, the proposed method is applied to the design of a very fast (f/0.75) complex lens. The obtained joint-designed lens is shown to be superior to a classically designed one in terms of weight and image quality in the field.