[openal-soft] Fix find_package failed (#10251)

* [openal-soft] Fix find_package failed

* [openal-soft] Add usage
This commit is contained in:
Lily 2020-03-11 08:22:44 +08:00 committed by GitHub
parent 4468d7be57
commit 33d8955807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -74,5 +74,6 @@ endforeach()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
vcpkg_copy_pdbs()

4
ports/openal-soft/usage Normal file
View File

@ -0,0 +1,4 @@
The package openal-soft provides CMake targets:
find_package(OpenAL CONFIG REQUIRED)
target_link_libraries(main PRIVATE OpenAL::OpenAL)