[libadlmidi] Fix CMake config for Linux/MacOS (#30359)

This commit is contained in:
Denis Barkar 2023-03-25 09:02:22 +04:00 committed by GitHub
parent 749fcd6c61
commit 2e1322f775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 5 deletions

View File

@ -66,21 +66,21 @@ index 271bb9b..1b6ba8f 100644
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
+
+include(CMakePackageConfigHelpers)
+configure_package_config_file(libADLMIDI-config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/libADLMIDI-config.cmake"
+configure_package_config_file(libADLMIDIConfig.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/libADLMIDIConfig.cmake"
+ PATH_VARS CMAKE_INSTALL_PREFIX CMAKE_INSTALL_FULL_BINDIR CMAKE_INSTALL_FULL_INCLUDEDIR CMAKE_INSTALL_FULL_LIBDIR
+ INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/libADLMIDI"
+)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libADLMIDI-config.cmake
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libADLMIDIConfig.cmake
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/libADLMIDI"
+)
file(GLOB DOCTXT_FILES
"${libADLMIDI_SOURCE_DIR}/LICENSE*.txt"
diff --git a/libADLMIDI-config.cmake.in b/libADLMIDI-config.cmake.in
diff --git a/libADLMIDIConfig.cmake.in b/libADLMIDIConfig.cmake.in
new file mode 100644
index 0000000..bd875fc
--- /dev/null
+++ b/libADLMIDI-config.cmake.in
+++ b/libADLMIDIConfig.cmake.in
@@ -0,0 +1,30 @@
+include(FeatureSummary)
+set_package_properties(libADLMIDI PROPERTIES

View File

@ -4,6 +4,7 @@ vcpkg_from_github(
REF v${VERSION}
SHA512 d827f13c60086b62bb4ffb098faeaa214fd83df52d3d5c19533b970d74b470c677e0aec76e91e05753574cf9bae1ccd02b77bd24d0ec1b2ad80b21cf541c7261
PATCHES
# patches from master, they should be removed when a new version is out
cmake-package-export.patch
cmake-build-shared-libs-support.patch
)

View File

@ -1,6 +1,7 @@
{
"name": "libadlmidi",
"version": "1.5.1",
"port-version": 1,
"description": "libADLMIDI is a free Software MIDI synthesizer library with OPL3 emulation",
"homepage": "https://github.com/Wohlstand/libADLMIDI",
"dependencies": [

View File

@ -3726,7 +3726,7 @@
},
"libadlmidi": {
"baseline": "1.5.1",
"port-version": 0
"port-version": 1
},
"libadwaita": {
"baseline": "1.2.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5cbc0a9338616c735a4cf4d8ccc2b4c81ccc61c5",
"version": "1.5.1",
"port-version": 1
},
{
"git-tree": "81e5c1700a6eab87c9d855b0a206ad6dadaf6ff2",
"version": "1.5.1",