Bump version to 1.46
[glpng.git] / FindGLPNG.cmake.in
blobc7ab95d1db7cc21fbe690f3bc5404dcdfff9d24f
1 # - Try to find glpng
2 # Once done this will define
4 #  GLPNG_FOUND - system has glpng
5 #  GLPNG_INCLUDE_DIRS - the glpng include directories
6 #  GLPNG_LIBRARIES - link these to use glpng
8 find_path(GLPNG_INCLUDE_DIR GL/glpng.h)
9 find_library(GLPNG_LIBRARY NAMES glpng)
11 set(GLPNG_INCLUDE_DIRS ${GLPNG_INCLUDE_DIR})
12 set(GLPNG_LIBRARIES ${GLPNG_LIBRARY})
14 set(GLPNG_VERSION @VERSION@)
15 set(GLPNG_VERSION_MAJOR @SONAME_VERSION@)
16 set(GLPNG_VERSION_MINOR @MINOR_VERSION@)
18 include(FindPackageHandleStandardArgs)
19 find_package_handle_standard_args(GLPNG DEFAULT_MSG GLPNG_LIBRARY GLPNG_INCLUDE_DIR)
21 mark_as_advanced(GLPNG_INCLUDE_DIR GLPNG_LIBRARY)