Autoinstall needed libraries

Just wonder if there does exist a way where during compilation a process runs through all #include statements and installs the need libraries into the project lib directory on my ATOM installation?