mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:09:00 +08:00
a469702fe1
Co-authored-by: Kai Pastor <dg0yt@darc.de>
13 lines
334 B
CMake
13 lines
334 B
CMake
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage" usage)
|
|
message(WARNING "find_package(libpng) is deprecated.\n${usage}")
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(PNG CONFIG)
|
|
|
|
if(NOT TARGET png_shared)
|
|
add_library(png_shared ALIAS PNG::PNG)
|
|
endif()
|
|
if(NOT TARGET png_static)
|
|
add_library(png_static ALIAS PNG::PNG)
|
|
endif()
|