iTunes library consist of Media Folder and iTunes Library database file (.itl). If you are moving to external HDD,
- Change the Media Folder.
- Consolidate (moving out the files to new folder).
- Shutdown iTunes, move out the itl file.
- Start iTunes with Shift-option/alt pressed, you will be prompted whether to create new library or open, choose open.