-
Notifications
You must be signed in to change notification settings - Fork 7
/
libOPNMIDIConfig.cmake.in
33 lines (30 loc) · 1.47 KB
/
libOPNMIDIConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
include(FeatureSummary)
set_package_properties(libOPNMIDI PROPERTIES
URL "https://github.com/Wohlstand/libOPNMIDI"
DESCRIPTION "A Software MIDI Synthesizer library with OPN2 (YM2612) emulator"
)
@PACKAGE_INIT@
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/libOPNMIDI-shared-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/libOPNMIDI-shared-targets.cmake")
endif()
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/libOPNMIDI-static-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/libOPNMIDI-static-targets.cmake")
endif()
if(TARGET libOPNMIDI::OPNMIDI_shared)
if(CMAKE_VERSION VERSION_LESS "3.18")
add_library(libOPNMIDI::OPNMIDI_IF INTERFACE IMPORTED)
set_target_properties(libOPNMIDI::OPNMIDI_IF PROPERTIES INTERFACE_LINK_LIBRARIES "libOPNMIDI::OPNMIDI_shared")
else()
add_library(libOPNMIDI::OPNMIDI_IF ALIAS libOPNMIDI::OPNMIDI_shared)
endif()
else()
if(CMAKE_VERSION VERSION_LESS "3.18")
add_library(libOPNMIDI::OPNMIDI_IF INTERFACE IMPORTED)
set_target_properties(libOPNMIDI::OPNMIDI_IF PROPERTIES INTERFACE_LINK_LIBRARIES "libOPNMIDI::OPNMIDI_static")
add_library(libOPNMIDI::OPNMIDI_IF_STATIC INTERFACE IMPORTED)
set_target_properties(libOPNMIDI::OPNMIDI_IF_STATIC PROPERTIES INTERFACE_LINK_LIBRARIES "libOPNMIDI::OPNMIDI_static")
else()
add_library(libOPNMIDI::OPNMIDI_IF ALIAS libOPNMIDI::OPNMIDI_static)
add_library(libOPNMIDI::OPNMIDI_IF_STATIC ALIAS libOPNMIDI::OPNMIDI_static)
endif()
endif()