You have to add the library path to the system environment variable. You can modify the project configurations by adding the c++ directories to the library include path and lib path.
Configurations depends on the IDE you're using..
For VS; In VS project setting; set these variables. C/C++ general --> Additional include directories; libpng \include path Linker --> General --> Additional library directories; libpng \lib path
Also, add the /bin path to the Windows System 'path' Environment variable.