Not sure it has a dedicated automatic feature (which would only benefit gateway users), but the procedure is:
1- fully decrypt the cia
2- extract decrypted cia to NCCHs using "ctrtool filename.cia --contents=ncch"
3- create 3ds using "makerom -f cci -o filename.3ds -content ncch.0000.seedumpedfilename:0 -content ncch.0001.seedumpedfilename:1 -content ncch.0002.seedumpedfilename:2"
steps 2 and 3 to be done on a computer with said software, obviously omit partition 1 (manual) and 2 (download play) if the game doesn't have them (step 2 didn't dump an appropriately numbered ncch), edit underlined parts with correct filenames
btw if you're asking for emulators, I think citra can run CXIs (so stop after step 2, rename the ncch.0000.* to filename.cxi)