An approach to do something vs. an approach to doing something

What is the preferred way to express something like this:

An approach to design a software system

(here design is a verb)

or

An approach to design of a software system

(here design is a noun)

In other words, should word approach as a noun be used with an infinitive?


An approach to designing a software system

or

An approach to the design of a software system