diff options
-rw-r--r-- | examples/sdl2_audio/CMakeLists.txt | 3 | ||||
-rw-r--r-- | utils/adlmidi-2/CMakeLists.txt | 3 | ||||
-rw-r--r-- | utils/midiplay/CMakeLists.txt | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/examples/sdl2_audio/CMakeLists.txt b/examples/sdl2_audio/CMakeLists.txt index 45fd654..6061b92 100644 --- a/examples/sdl2_audio/CMakeLists.txt +++ b/examples/sdl2_audio/CMakeLists.txt @@ -3,8 +3,9 @@ project(adlmidi_vlc_plugin C) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) -find_package(SDL2 REQUIRED) +find_library(SDL2_LIBRARY SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIR}) +message("Found ${SDL2_LIBRARY}") add_executable(adlmidi_sdl2_demo sdl2_sample.c) diff --git a/utils/adlmidi-2/CMakeLists.txt b/utils/adlmidi-2/CMakeLists.txt index 6a31a33..87fa810 100644 --- a/utils/adlmidi-2/CMakeLists.txt +++ b/utils/adlmidi-2/CMakeLists.txt @@ -8,8 +8,9 @@ find_package(OpenMP) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) if(NOT WIN32 AND NOT DJGPP AND NOT MSDOS) - find_package(SDL2 REQUIRED) + find_library(SDL2_LIBRARY SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIR}) + message("Found ${SDL2_LIBRARY}") endif() if(NOT WIN32 AND NOT DJGPP AND NOT MSDOS) diff --git a/utils/midiplay/CMakeLists.txt b/utils/midiplay/CMakeLists.txt index 8aef37f..ac5d4c2 100644 --- a/utils/midiplay/CMakeLists.txt +++ b/utils/midiplay/CMakeLists.txt @@ -4,8 +4,9 @@ project(adlmidiplay CXX) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) if(NOT MSDOS AND NOT DJGPP AND NOT MIDIPLAY_WAVE_ONLY) - find_package(SDL2 REQUIRED) + find_library(SDL2_LIBRARY SDL2 REQUIRED) include_directories(${SDL2_INCLUDE_DIR}) + message("Found ${SDL2_LIBRARY}") else() unset(SDL2_LIBRARY) endif() |