mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
add libpng as dependency
* NOTE: you will need to download the new required libraries
This commit is contained in:
@@ -87,6 +87,7 @@ FIND_PACKAGE(OpenAL REQUIRED)
|
||||
FIND_PACKAGE(VorbisFile REQUIRED)
|
||||
FIND_PACKAGE(Vorbis REQUIRED)
|
||||
FIND_PACKAGE(Ogg REQUIRED)
|
||||
FIND_PACKAGE(PNG REQUIRED)
|
||||
|
||||
IF(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||
MESSAGE(STATUS "Debug information: ON")
|
||||
@@ -147,6 +148,7 @@ INCLUDE_DIRECTORIES(
|
||||
${PHYSFS_INCLUDE_DIR}
|
||||
${GMP_INCLUDE_DIR}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
${PNG_INCLUDE_DIR}
|
||||
"${CMAKE_CURRENT_LIST_DIR}/.."
|
||||
)
|
||||
|
||||
@@ -159,6 +161,7 @@ SET(framework_LIBRARIES
|
||||
${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${OGG_LIBRARY}
|
||||
${OPENGL_LIBRARIES}
|
||||
${OPENAL_LIBRARY}
|
||||
${PNG_LIBRARY}
|
||||
${ADDITIONAL_LIBRARIES}
|
||||
)
|
||||
|
||||
|
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