It's quite simple. When starting iTunes, hold down option (OS X) or shift (Windows). iTunes will then prompt you to choose an iTunes library. Select "Create Library..." and place it wherever you want. Import media, and you're done.
You can also move an already existing iTunes library to another location with this trick.