Read article 411.4 (B )
680.22 ( B ) ( 1 )

I would say that if they are ground mounted they must be 10 feet away from the pools edge 411.4 B and if they are over head they must be at least 12 feet above maximum water level and at least 5 feet horizontally from the edge of the pool
680.22 B 1