When you add a simulation setting, go to “include files” tab
Browse to the file CD4007.lib and add it, when you browse set the f“Files of type” to All Files (*.*) since it defaults to inc files (either as a global to be seen by other projects, or add it to the existing project you are working on).