-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindVPNG.cmake
More file actions
25 lines (17 loc) · 935 Bytes
/
FindVPNG.cmake
File metadata and controls
25 lines (17 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id: FindZMQ.cmake 21620 2011-05-30 10:28:48Z dr165799 $
include( FindPackageHandleStandardArgs )
include( VistaFindUtils )
if( NOT VPNG_FOUND )
# find libpng looking for various lib names
vista_find_package_root( PNG include/png.h NAMES libpng LibPNG libPNG png PNG)
if( PNG_ROOT_DIR )
set(PNG_NAMES ${PNG_NAMES} png libpng png15 libpng15 png15d libpng15d png14 libpng14 png14d libpng14d png12 libpng12 png12d libpng12d)
find_library( PNG_LIBRARIES NAMES ${PNG_NAMES}
PATHS ${PNG_ROOT_DIR}/lib
CACHE "PNG library" )
set( PNG_INCLUDE_DIRS ${PNG_ROOT_DIR}/include CACHE STRING "PNG include dir.")
set( PNG_LIBRARY_DIRS ${PNG_ROOT_DIR}/lib ${PNG_ROOT_DIR}/bin CACHE STRING "PNG library dir.")
set( PNG_DEPENDENCIES package ZLIB REQUIRED)
endif( PNG_ROOT_DIR )
endif( NOT VPNG_FOUND )
find_package_handle_standard_args( VPNG "PNG could not be found" PNG_ROOT_DIR PNG_LIBRARIES)