summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-06-14 11:00:29 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-06-14 11:00:29 +0000
commitace85426bc39384a123d2e5fb8b92b9d2268893b (patch)
tree5ae87ab36fdbd0bd719ab389ceb78156a7543afa /test
parent68cf00ee09432b8d9515a4ac0eb269c26d8661df (diff)
[CMake] Improve sound support detection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 082e097fc..860758242 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -3,14 +3,14 @@ set(EXECUTABLE_OUTPUT_PATH ${FLTK_BINARY_DIR}/bin/examples)
#######################################################################
# audio libs for test apps
if(WIN32)
- set(AUDIOLIBS winmm)
+ set(AUDIOLIBS winmm)
elseif(APPLE)
- set(AUDIOLIBS "-framework CoreAudio")
+ set(AUDIOLIBS "-framework CoreAudio")
elseif(HAVE_ALSA_ASOUNDLIB_H)
- set(AUDIOLIBS -lasound)
- if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
- list(INSERT AUDIOLIBS 0 "-L/usr/local/lib")
- endif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+ find_library(LIB_asound asound)
+ if(LIB_asound)
+ set(AUDIOLIBS ${LIB_asound})
+ endif(LIB_asound)
endif(WIN32)
#######################################################################