Getting water from the nearby Havel River to this fountain was a failure at first. They finally were successful in the 1840's when a steam pumping house, the Dampfmaschinenhaus, shown below, was built in the style of a Turkish mosque complete with minaret. Nowadays it seems a bit forlorn, stuck amid modern Potsdam, separate from Sanssouci.
Below is one of the other highlights of Sanssouci - the Chinese House (Chinesisches Haus). Stylistically, Chinoiserie meets Rococo. There were similar efforts at the time, by Catherine the Great at Tsarskoye Selo near St. Petersburg, by the Swedish royal family at Drottningholm Palace in Stockholm and with the pagoda in London's Kew Gardens.
Photos - second one: Torinberl; third one: Dieter Brügmann.