mirror of
https://github.com/edubart/otclient.git
synced 2025-10-21 23:05:54 +02:00
add libpng as dependency
* NOTE: you will need to download the new required libraries
This commit is contained in:
10
src/framework/cmake/FindPNG.cmake
Normal file
10
src/framework/cmake/FindPNG.cmake
Normal 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)
|
Reference in New Issue
Block a user