iTunes library consist of Media Folder and iTunes Library database file (.itl). If you are moving to external HDD,

  1. Change the Media Folder.
  2. Consolidate (moving out the files to new folder).
  3. Shutdown iTunes, move out the itl file.
  4. Start iTunes with Shift-option/alt pressed, you will be prompted whether to create new library or open, choose open.