This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoom-plusplus/FindGLPng.cmake

17 lines
477 B
CMake
Raw Permalink Normal View History

2009-12-14 13:54:34 +01:00
FIND_PATH(GLPNG_INCLUDE_DIR GL/glpng.h)
FIND_LIBRARY(GLPNG_LIBRARY NAMES glpng)
IF (GLPNG_INCLUDE_DIR AND GLPNG_LIBRARY)
SET(GLPNG_FOUND TRUE)
ENDIF (GLPNG_INCLUDE_DIR AND GLPNG_LIBRARY)
IF (GLPNG_FOUND)
IF (NOT GLPng_FIND_QUIETLY)
MESSAGE(STATUS "Found glpng: ${GLPNG_LIBRARY}")
ENDIF (NOT GLPng_FIND_QUIETLY)
ELSE (GLPNG_FOUND)
IF (GLPng_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find glpng")
ENDIF (GLPng_FIND_REQUIRED)
ENDIF (GLPNG_FOUND)