diff options
author | Wohlstand <admin@wohlnet.ru> | 2021-01-14 23:59:35 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2021-01-14 23:59:35 +0300 |
commit | 831964b94a4c5abcf4e4e3c223bdbb2e02bbcfca (patch) | |
tree | d624cb49766853fdd7bd1b44b8d06afb75017897 /examples | |
parent | 10e93ea22f634ee3e12bde77612344336b0d991b (diff) | |
download | libADLMIDI-831964b94a4c5abcf4e4e3c223bdbb2e02bbcfca.tar.gz libADLMIDI-831964b94a4c5abcf4e4e3c223bdbb2e02bbcfca.tar.bz2 libADLMIDI-831964b94a4c5abcf4e4e3c223bdbb2e02bbcfca.zip |
SDL2 Audio example: attempt to fix a conflict with the MIDI Player tool
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sdl2_audio/CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/sdl2_audio/CMakeLists.txt b/examples/sdl2_audio/CMakeLists.txt index d02631f..5517ca4 100644 --- a/examples/sdl2_audio/CMakeLists.txt +++ b/examples/sdl2_audio/CMakeLists.txt @@ -3,22 +3,22 @@ if(POLICY CMP0111) endif() find_package(SDL2 REQUIRED) -add_library(ADLMIDI_SDL2 INTERFACE) +add_library(ADLMIDIEXAMPLE_SDL2 INTERFACE) if(TARGET SDL2::SDL2) if(MINGW) - target_link_libraries(ADLMIDI_SDL2 INTERFACE mingw32 SDL2::SDL2main SDL2::SDL2) + target_link_libraries(ADLMIDIEXAMPLE_SDL2 INTERFACE mingw32 SDL2::SDL2main SDL2::SDL2) else() - target_link_libraries(ADLMIDI_SDL2 INTERFACE SDL2::SDL2) + target_link_libraries(ADLMIDIEXAMPLE_SDL2 INTERFACE SDL2::SDL2) endif() - target_include_directories(ADLMIDI_SDL2 INTERFACE ${SDL2_INCLUDE_DIRS}) + target_include_directories(ADLMIDIEXAMPLE_SDL2 INTERFACE ${SDL2_INCLUDE_DIRS}) else() string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES) - target_include_directories(ADLMIDI_SDL2 INTERFACE ${SDL2_INCLUDE_DIRS}) - target_link_libraries(ADLMIDI_SDL2 INTERFACE ${SDL2_LIBRARIES}) + target_include_directories(ADLMIDIEXAMPLE_SDL2 INTERFACE ${SDL2_INCLUDE_DIRS}) + target_link_libraries(ADLMIDIEXAMPLE_SDL2 INTERFACE ${SDL2_LIBRARIES}) endif() add_executable(adlmidi_sdl2_demo sdl2_sample.c) -target_link_libraries(adlmidi_sdl2_demo PRIVATE ADLMIDI ADLMIDI_SDL2) +target_link_libraries(adlmidi_sdl2_demo PRIVATE ADLMIDI ADLMIDIEXAMPLE_SDL2) set_nopie(adlmidi_sdl2_demo) @@ -35,4 +35,3 @@ endif() install(TARGETS adlmidi_sdl2_demo RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") - |