Wohlstand / libADLMIDI

A Software MIDI Synthesizer library with OPL3 (YMF262) emulator
GNU Lesser General Public License v3.0
174 stars 17 forks source link

CMake: added package export; fixed includes #260

Closed dbarkar closed 1 year ago

dbarkar commented 1 year ago

These changes will make it much easier for external users to integrate the library. Easy as:

find_package(libADLMIDI CONFIG REQUIRED)
...
target_link_libraries(main PRIVATE libADLMIDI::ADLMIDI)
Wohlstand commented 1 year ago

You should NOT bump CMake version to newer versions. That kills the support of old platforms. Please make sure your update will work on CMake 3.2 at least.

dbarkar commented 1 year ago

Alright, fixed :)

Wohlstand commented 1 year ago

Merged that just now! You may want to submit similar tweaks into my second project called libOPNMIDI: https://github.com/Wohlstand/libOPNMIDI It's very similar to libADLMIDI, except for the internality.

Wohlstand commented 1 year ago

P.S. Sorry for long delay.