diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-11-16 23:54:55 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-11-16 23:54:55 -0800 |
| commit | 1b2f75be941e9eed5986c10eb99fd6049490daec (patch) | |
| tree | c782bfff26daa96f0aba34ec39e74513330e6cc0 /ports/libpng | |
| parent | 468e9e70e644eb26258434c9e27e34935eb3e06d (diff) | |
| download | vcpkg-1b2f75be941e9eed5986c10eb99fd6049490daec.tar.gz vcpkg-1b2f75be941e9eed5986c10eb99fd6049490daec.zip | |
[vcpkg] Support \share\<port>\usage to handle libraries which are found through built-in Find Modules.
Diffstat (limited to 'ports/libpng')
| -rw-r--r-- | ports/libpng/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/libpng/usage | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/libpng/portfile.cmake b/ports/libpng/portfile.cmake index fe4fb7250..c2067ff9b 100644 --- a/ports/libpng/portfile.cmake +++ b/ports/libpng/portfile.cmake @@ -57,3 +57,5 @@ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libpn file(RENAME ${CURRENT_PACKAGES_DIR}/share/libpng/LICENSE ${CURRENT_PACKAGES_DIR}/share/libpng/copyright) vcpkg_copy_pdbs() + +file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) diff --git a/ports/libpng/usage b/ports/libpng/usage new file mode 100644 index 000000000..19203399c --- /dev/null +++ b/ports/libpng/usage @@ -0,0 +1,4 @@ +The package libpng is compatible with built-in CMake targets:
+
+ find_package(PNG REQUIRED)
+ target_link_libraries(main PRIVATE PNG::PNG)
|
