First of all the distance is no problem at all. As long as there is not an elevator shaft or stairwell in between you will be fine.
Do you want to extend the Wired network into the other building as well? Or just the wireless network?
What AP are you using?
If you want to extend the wired network, then what you need is wireless lan 'bridge' or an AP that supports 'bridge mode'.
Many APs do not support bridge-mode, so you cannot just connect an AP to another AP.
If you want to have wireless clients on both ends, you need APs that can support both bridge-mode and AP mode at the same time, or an AP that can work as a repeater.
Some devices are dedicated bridges (Cisco Wireless Bridges), and some devices can work as both an AP and a bridge at the same time (albeit with reduced performance). Some devices can also be configured to operate as a repeater.
In some cases it makes sense to make the bridge be just a bridge, and buy seperate APs for Wireless client access.
Some Cisco APs support this dual mode (they call it 'workgroup bridge mode'.
If you want to extend the wireless network, you need an AP that can be configured as 'repeater mode'. (Cisco can also do this).
Repeater mode is the simplest to configure, but the performance is not as good...typically you get half the throughput since the repeater has to handle two data streams at the same time. So to recap:
Option A, Best solution:
remote building<<<---->>>main building
[AP]--[Ethernet switch]-[WLAN bridge] <<<--->>[WLAN bridge]--[Ethernet switch] in main building
This would give you the best performance and reliability, and allow wired devices such as printers to connect to the LAN.
Option B:
Least complex, yet slowest:
[AP](repeater mode) <---> [AP] main building
Option C:
remote building<<---->>main building
[Ethernet Switch*]--[AP](Dual Mode) <<<--->>[WLAN bridge] or [Dual-mode AP]--[Ethernet Switch] in main building
*optional
More complex, somewhat faster than option B, but also enables optional wired ethernet in remote building.
Using a dedicated wlan bridge will give the best performance, but a dual-mode AP workgroup bridge and AP) will work, but not as fast.