How to add library files into Xcode project
OSX 2010. 1. 7. 11:462
To link to a .a library like this in Xcode you need to:
-
Double-click on your target or application in Xcode to open the Info window
-
Switch to the "Build" tab
-
Add -lfftw3 to "Other Linker Flags" (under "Linking")
-
Add the path to your library to the "Library Search Paths" (under "Search Paths"). In your case this will be /usr/local/lib
We use FFTW (it's great by the way), this works for us!
Cheers,
Steve