add libpng as dependency

* NOTE: you will need to download the new required libraries
This commit is contained in:
Eduardo Bart
2012-04-28 19:02:57 -03:00
parent 1c12bc3fb2
commit cc965bb77b
4 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
# Try to find the PNG librairy
# PNG_FOUND - system has PNG
# PNG_INCLUDE_DIR - the PNG include directory
# PNG_LIBRARY - the PNG library
FIND_PATH(PNG_INCLUDE_DIR NAMES png.h)
FIND_LIBRARY(PNG_LIBRARY NAMES libpng15.a libpng.a png15 png)
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PNG DEFAULT_MSG PNG_LIBRARY PNG_INCLUDE_DIR)
MARK_AS_ADVANCED(PNG_LIBRARY PNG_INCLUDE_DIR)