-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
461 lines (402 loc) · 15.1 KB
/
CMakeLists.txt
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
# CMakeLists.txt for ALURE
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
INCLUDE(CheckCCompilerFlag)
INCLUDE(CheckCSourceCompiles)
INCLUDE(CheckFunctionExists)
INCLUDE(CheckIncludeFile)
INCLUDE(CheckIncludeFiles)
INCLUDE(CheckLibraryExists)
INCLUDE(CheckSharedFunctionExists)
INCLUDE(CheckFileOffsetBits)
PROJECT(ALURE)
IF(WIN32)
SET(LIBNAME ALURE32)
ELSE(WIN32)
SET(LIBNAME alure)
ENDIF(WIN32)
SET(LIB_MAJOR_VERSION "1")
SET(LIB_MINOR_VERSION "2")
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}")
INCLUDE_DIRECTORIES(include "${ALURE_BINARY_DIR}")
OPTION(BUILD_SHARED "Build the shared version of the library" ON)
OPTION(BUILD_STATIC "Build the static version of the library" ON)
IF(NOT BUILD_SHARED AND NOT BUILD_STATIC)
MESSAGE(FATAL_ERROR "No libtype being built!")
ENDIF(NOT BUILD_SHARED AND NOT BUILD_STATIC)
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
IF(NOT DEFINED CMAKE_DEBUG_POSTFIX)
SET(CMAKE_DEBUG_POSTFIX "" CACHE STRING
"Library postfix for debug builds. Normally left blank."
FORCE)
ENDIF(NOT DEFINED CMAKE_DEBUG_POSTFIX)
CHECK_LIBRARY_EXISTS(stdc++ memset "" HAS_STDCXX)
IF(HAS_STDCXX)
SET(EXTRA_LIBS stdc++ ${EXTRA_LIBS})
ENDIF(HAS_STDCXX)
CHECK_LIBRARY_EXISTS(m pow "" HAS_LIBM)
IF(HAS_LIBM)
SET(EXTRA_LIBS m ${EXTRA_LIBS})
ENDIF(HAS_LIBM)
CHECK_FILE_OFFSET_BITS()
IF(_FILE_OFFSET_BITS)
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=${_FILE_OFFSET_BITS})
SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -D_FILE_OFFSET_BITS=${_FILE_OFFSET_BITS})
ENDIF(_FILE_OFFSET_BITS)
CHECK_FUNCTION_EXISTS(fseeko HAVE_FSEEKO)
IF(NOT HAVE_FSEEKO)
CHECK_FUNCTION_EXISTS(_fseeki64 HAVE__FSEEKI64)
ENDIF(NOT HAVE_FSEEKO)
SET(STATIC_CFLAGS "${STATIC_CFLAGS} -DALURE_STATIC_LIBRARY")
IF(MSVC)
# ???
ELSE(MSVC)
IF(NOT WIN32)
CHECK_C_SOURCE_COMPILES("int foo() __attribute__((constructor));
int main() {return 0;}" HAVE_GCC_CONSTRUCTOR)
# Force -fPIC for the static lib, because it causes problems when the
# static version is linked to a dynamic lib
SET(STATIC_CFLAGS "${STATIC_CFLAGS} -fPIC")
ENDIF(NOT WIN32)
CHECK_C_COMPILER_FLAG(-Wextra HAVE_WEXTRA)
IF(HAVE_WEXTRA)
ADD_DEFINITIONS(-Wextra)
ENDIF(HAVE_WEXTRA)
ADD_DEFINITIONS(-Wall)
ENDIF(MSVC)
# Set visibility/export options if available
SET(EXPORT_DECL "")
IF(WIN32)
SET(EXPORT_DECL "__declspec(dllexport)")
ELSE(WIN32)
CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_SWITCH)
CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"protected\")));
int main() {return 0;}" HAVE_GCC_VISIBILITY)
IF(HAVE_VISIBILITY_SWITCH AND HAVE_GCC_VISIBILITY)
ADD_DEFINITIONS(-fvisibility=hidden)
SET(EXPORT_DECL "__attribute__((visibility(\"protected\")))")
ENDIF(HAVE_VISIBILITY_SWITCH AND HAVE_GCC_VISIBILITY)
ENDIF(WIN32)
CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H -D_WIN32_WINNT=0x0500)
IF(HAVE_WINDOWS_H)
CHECK_INCLUDE_FILE(ddk/ntddcdrm.h HAVE_DDK_NTDDCDRM_H)
ELSE(HAVE_WINDOWS_H)
CHECK_C_COMPILER_FLAG(-pthread HAVE_PTHREAD)
IF(HAVE_PTHREAD)
ADD_DEFINITIONS(-pthread)
SET(EXTRA_LIBS ${EXTRA_LIBS} -pthread)
ENDIF(HAVE_PTHREAD)
# We need pthreads outside of Windows
CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
IF(NOT HAVE_PTHREAD_H)
MESSAGE(FATAL_ERROR "PThreads is required for non-Windows builds!")
ENDIF(NOT HAVE_PTHREAD_H)
# Some systems need pthread_np.h to get recursive mutexes
CHECK_INCLUDE_FILES("pthread.h;pthread_np.h" HAVE_PTHREAD_NP_H)
# _GNU_SOURCE is needed on some systems for extra attributes, and
# _REENTRANT is needed for libc thread-safety
ADD_DEFINITIONS(-D_GNU_SOURCE=1)
CHECK_FUNCTION_EXISTS(pthread_create HAS_PTHREAD_CREATE)
IF(NOT HAS_PTHREAD_CREATE)
CHECK_SHARED_FUNCTION_EXISTS(pthread_create "pthread.h" pthread "" HAVE_LIBPTHREAD)
IF(NOT HAVE_LIBPTHREAD)
MESSAGE(FATAL_ERROR "pthread_create not found on non-Windows target!")
ENDIF(NOT HAVE_LIBPTHREAD)
SET(EXTRA_LIBS pthread ${EXTRA_LIBS})
ENDIF(NOT HAS_PTHREAD_CREATE)
CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP)
IF(NOT HAVE_NANOSLEEP)
MESSAGE(FATAL_ERROR "No sleep function found!")
ENDIF(NOT HAVE_NANOSLEEP)
ENDIF(HAVE_WINDOWS_H)
CHECK_INCLUDE_FILE(sys/types.h HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE(sys/wait.h HAVE_SYS_WAIT_H)
CHECK_INCLUDE_FILE(signal.h HAVE_SIGNAL_H)
CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H)
IF(HAVE_DLFCN_H)
CHECK_SHARED_FUNCTION_EXISTS(dlopen "dlfcn.h" dl "" HAVE_LIBDL)
IF(HAVE_LIBDL)
SET(EXTRA_LIBS dl ${EXTRA_LIBS})
ENDIF(HAVE_LIBDL)
ENDIF(HAVE_DLFCN_H)
OPTION(SNDFILE "SoundFile support (for various formats)" ON)
OPTION(VORBIS "VorbisFile support (for Ogg Vorbis)" ON)
OPTION(FLAC "FLAC support (for FLAC and Ogg FLAC)" ON)
OPTION(MPG123 "MPG123 support (for MP1/MP2/MP3)" ON)
OPTION(DUMB "DUMB support (for IT/XM/S3M/MOD)" ON)
OPTION(MODPLUG "ModPlug support (for IT/XM/S3M/MOD)" OFF)
OPTION(FLUIDSYNTH "FluidSynth support (for MID)" ON)
IF(WIN32)
ADD_DEFINITIONS(-D_WIN32)
ENDIF(WIN32)
FIND_PACKAGE(OpenAL)
IF(NOT OPENAL_FOUND)
MESSAGE(FATAL_ERROR "OpenAL not found!\nPlease try setting the OPENALDIR environment variable and try again.")
ENDIF(NOT OPENAL_FOUND)
MESSAGE(STATUS "OpenAL include: ${OPENAL_INCLUDE_DIR}")
MESSAGE(STATUS "OpenAL lib: ${OPENAL_LIBRARY}")
INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR})
# Base source files
SET(ALURE_OBJS src/alure.cpp
src/buffer.cpp
src/istream.cpp
src/stream.cpp
src/streamdec.cpp
src/streamplay.cpp
src/codec_wav.cpp
src/codec_aiff.cpp
)
# SndFile support
IF(SNDFILE)
FIND_PACKAGE(SndFile)
IF(SNDFILE_FOUND)
SET(HAS_SNDFILE 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_sndfile.cpp)
SET(EXTRA_LIBS ${SNDFILE_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${SNDFILE_INCLUDE_DIRS})
ENDIF(SNDFILE_FOUND)
ENDIF(SNDFILE)
# Vorbis support
IF(VORBIS)
FIND_PACKAGE(OggVorbis)
IF(OGGVORBIS_FOUND)
SET(HAS_VORBISFILE 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_vorbisfile.cpp)
SET(EXTRA_LIBS ${OGGVORBIS_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${OGGVORBIS_INCLUDE_DIRS})
ENDIF(OGGVORBIS_FOUND)
IF(NOT HAS_VORBISFILE)
CHECK_INCLUDE_FILE(tremor/ivorbisfile.h HAVE_TREMOR_IVORBISFILE_H)
IF(HAVE_TREMOR_IVORBISFILE_H)
CHECK_SHARED_FUNCTION_EXISTS(ov_open "tremor/ivorbisfile.h" vorbisidec "" HAVE_LIBVORBISIDEC)
IF(HAVE_LIBVORBISIDEC)
SET(HAS_VORBISFILE 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_vorbisfile.cpp)
SET(EXTRA_LIBS "vorbisidec" ${EXTRA_LIBS})
SET_SOURCE_FILES_PROPERTIES(src/codec_vorbisfile.cpp PROPERTIES
COMPILE_FLAGS "-DHAS_VORBISIDEC")
ENDIF(HAVE_LIBVORBISIDEC)
ENDIF(HAVE_TREMOR_IVORBISFILE_H)
ENDIF(NOT HAS_VORBISFILE)
ENDIF(VORBIS)
# FLAC support
IF(FLAC)
FIND_PACKAGE(FLAC)
IF(FLAC_FOUND)
SET(HAS_FLAC 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_flac.cpp)
SET(EXTRA_LIBS ${FLAC_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${FLAC_INCLUDE_DIR})
ENDIF(FLAC_FOUND)
ENDIF(FLAC)
# MPG123 support
IF(MPG123)
FIND_PACKAGE(MPG123)
IF(MPG123_FOUND)
SET(HAS_MPG123 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_mpg123.cpp)
SET(EXTRA_LIBS ${MPG123_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${MPG123_INCLUDE_DIR})
ENDIF(MPG123_FOUND)
ENDIF(MPG123)
# DUMB support
IF(DUMB)
FIND_PACKAGE(DUMB)
IF(DUMB_FOUND)
SET(HAS_DUMB 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_dumb.cpp)
SET(EXTRA_LIBS ${DUMB_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${DUMB_INCLUDE_DIR})
ENDIF(DUMB_FOUND)
ENDIF(DUMB)
# ModPlug support
IF(MODPLUG)
FIND_PACKAGE(ModPlug)
IF(MODPLUG_FOUND)
SET(HAS_MODPLUG 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_modplug.cpp)
SET(EXTRA_LIBS ${MODPLUG_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${MODPLUG_INCLUDE_DIR})
ENDIF(MODPLUG_FOUND)
ENDIF(MODPLUG)
# FluidSynth support
IF(FLUIDSYNTH)
FIND_PACKAGE(FluidSynth)
IF(FLUIDSYNTH_FOUND)
SET(HAS_FLUIDSYNTH 1)
SET(ALURE_OBJS ${ALURE_OBJS} src/codec_fluidsynth.cpp)
SET(EXTRA_LIBS ${FLUIDSYNTH_LIBRARIES} ${EXTRA_LIBS})
INCLUDE_DIRECTORIES(${FLUIDSYNTH_INCLUDE_DIR})
ENDIF(FLUIDSYNTH_FOUND)
ENDIF(FLUIDSYNTH)
# For alure.pc.in
SET(prefix ${CMAKE_INSTALL_PREFIX})
SET(exec_prefix "\${prefix}")
SET(libdir "\${exec_prefix}/lib${LIB_SUFFIX}")
SET(bindir "\${exec_prefix}/bin")
SET(includedir "\${prefix}/include")
SET(PKG_CONFIG_REQUIRES openal)
SET(PACKAGE_VERSION "${LIB_VERSION}")
# End configuration
CONFIGURE_FILE(
"${ALURE_SOURCE_DIR}/config.h.in"
"${ALURE_BINARY_DIR}/config.h")
IF(BUILD_SHARED)
CONFIGURE_FILE(
"${ALURE_SOURCE_DIR}/alure.pc.in"
"${ALURE_BINARY_DIR}/alure.pc"
@ONLY)
ENDIF(BUILD_SHARED)
IF(BUILD_STATIC)
CONFIGURE_FILE(
"${ALURE_SOURCE_DIR}/alure-static.pc.in"
"${ALURE_BINARY_DIR}/alure-static.pc"
@ONLY)
ENDIF(BUILD_STATIC)
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
IF(BUILD_SHARED)
#build a shared library
ADD_LIBRARY(${LIBNAME} SHARED ${ALURE_OBJS})
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES DEFINE_SYMBOL ALURE_BUILD_LIBRARY
VERSION ${LIB_VERSION}.0
SOVERSION ${LIB_MAJOR_VERSION})
IF(WIN32)
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "")
ELSEIF(NOT APPLE)
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES LINK_FLAGS "-Wl,--version-script=${ALURE_SOURCE_DIR}/libalure.map")
ENDIF(WIN32)
TARGET_LINK_LIBRARIES(${LIBNAME} ${OPENAL_LIBRARY} ${EXTRA_LIBS})
INSTALL(TARGETS ${LIBNAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
)
ENDIF(BUILD_SHARED)
IF(BUILD_STATIC)
#build a static library
ADD_LIBRARY(${LIBNAME}-static STATIC ${ALURE_OBJS})
SET_TARGET_PROPERTIES(${LIBNAME}-static PROPERTIES DEFINE_SYMBOL ALURE_BUILD_LIBRARY
COMPILE_FLAGS ${STATIC_CFLAGS}
VERSION ${LIB_VERSION}.0)
INSTALL(TARGETS ${LIBNAME}-static
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
)
ENDIF(BUILD_STATIC)
OPTION(BUILD_EXAMPLES "Build example programs" ON)
OPTION(INSTALL_EXAMPLES "Install example programs" ON)
IF(BUILD_EXAMPLES)
IF(HAVE_DDK_NTDDCDRM_H)
SET_SOURCE_FILES_PROPERTIES(examples/alurecdplay.c PROPERTIES
COMPILE_FLAGS "-DHAVE_DDK_NTDDCDRM_H")
ENDIF(HAVE_DDK_NTDDCDRM_H)
ADD_EXECUTABLE(alureplay examples/alureplay.c)
ADD_EXECUTABLE(alurecdplay examples/alurecdplay.c)
ADD_EXECUTABLE(alurestream examples/alurestream.c)
IF(BUILD_SHARED)
TARGET_LINK_LIBRARIES(alureplay ${LIBNAME} ${OPENAL_LIBRARY} ${EXTRA_LIBS})
TARGET_LINK_LIBRARIES(alurecdplay ${LIBNAME} ${OPENAL_LIBRARY} ${EXTRA_LIBS})
TARGET_LINK_LIBRARIES(alurestream ${LIBNAME} ${OPENAL_LIBRARY} ${EXTRA_LIBS})
ELSE(BUILD_SHARED)
SET_TARGET_PROPERTIES(alureplay PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
SET_TARGET_PROPERTIES(alurecdplay PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
SET_TARGET_PROPERTIES(alurestream PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
TARGET_LINK_LIBRARIES(alureplay ${LIBNAME}-static ${OPENAL_LIBRARY} ${EXTRA_LIBS})
TARGET_LINK_LIBRARIES(alurecdplay ${LIBNAME}-static ${OPENAL_LIBRARY} ${EXTRA_LIBS})
TARGET_LINK_LIBRARIES(alurestream ${LIBNAME}-static ${OPENAL_LIBRARY} ${EXTRA_LIBS})
ENDIF(BUILD_SHARED)
ENDIF(BUILD_EXAMPLES)
FIND_PROGRAM(NATDOCS_BIN NaturalDocs)
IF(NATDOCS_BIN)
ADD_CUSTOM_TARGET(docs
"${NATDOCS_BIN}" -i "${ALURE_SOURCE_DIR}/src" -o HTML "${ALURE_SOURCE_DIR}/docs/html" -p "${ALURE_SOURCE_DIR}/docs/naturaldocs" -s Default CustomStyle
COMMENT "Building NaturalDocs documentation..." VERBATIM)
ELSE(NATDOCS_BIN)
MESSAGE(STATUS "\nNaturalDocs not found; building documentation is disabled")
ENDIF(NATDOCS_BIN)
#add an install target here
IF(APPLE)
SET(INCPATH OpenAL)
ELSE(APPLE)
SET(INCPATH AL)
ENDIF(APPLE)
INSTALL(DIRECTORY "${ALURE_SOURCE_DIR}/docs/html"
DESTINATION share/doc/alure
)
INSTALL(FILES include/AL/alure.h
DESTINATION "include/${INCPATH}"
)
IF(BUILD_SHARED)
INSTALL(FILES "${ALURE_BINARY_DIR}/alure.pc"
DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
)
ENDIF(BUILD_SHARED)
IF(BUILD_STATIC)
INSTALL(FILES "${ALURE_BINARY_DIR}/alure-static.pc"
DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
)
ENDIF(BUILD_STATIC)
IF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
INSTALL(TARGETS alureplay alurestream alurecdplay
RUNTIME DESTINATION bin)
ENDIF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
MESSAGE(STATUS "\n********************** Configured options **********************")
IF(BUILD_SHARED AND BUILD_STATIC)
MESSAGE(STATUS "Building shared, static library")
ELSEIF(BUILD_SHARED)
MESSAGE(STATUS "Building shared library")
ELSE(BUILD_SHARED AND BUILD_STATIC)
MESSAGE(STATUS "Building static library")
ENDIF(BUILD_SHARED AND BUILD_STATIC)
IF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
MESSAGE(STATUS "Building and installing examples")
ELSEIF(BUILD_EXAMPLES)
MESSAGE(STATUS "Building (not installing) examples")
ELSE(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
MESSAGE(STATUS "Not building examples")
ENDIF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
MESSAGE(STATUS "")
IF(HAS_SNDFILE)
MESSAGE(STATUS "SndFile support: enabled")
ELSE(HAS_SNDFILE)
MESSAGE(STATUS "SndFile support: disabled")
ENDIF(HAS_SNDFILE)
IF(HAS_VORBISFILE)
MESSAGE(STATUS "VorbisFile support: enabled")
ELSE(HAS_VORBISFILE)
MESSAGE(STATUS "VorbisFile support: disabled")
ENDIF(HAS_VORBISFILE)
IF(HAS_FLAC)
MESSAGE(STATUS "FLAC support: enabled")
ELSE(HAS_FLAC)
MESSAGE(STATUS "FLAC support: disabled")
ENDIF(HAS_FLAC)
IF(HAS_MPG123)
MESSAGE(STATUS "MPG123 support: enabled")
ELSE(HAS_MPG123)
MESSAGE(STATUS "MPG123 support: disabled")
ENDIF(HAS_MPG123)
IF(HAS_DUMB)
MESSAGE(STATUS "DUMB support: enabled")
ELSE(HAS_DUMB)
MESSAGE(STATUS "DUMB support: disabled")
ENDIF(HAS_DUMB)
IF(HAS_MODPLUG)
MESSAGE(STATUS "ModPlug support: enabled")
ELSE(HAS_MODPLUG)
MESSAGE(STATUS "ModPlug support: disabled")
ENDIF(HAS_MODPLUG)
IF(HAS_FLUIDSYNTH)
MESSAGE(STATUS "FluidSynth support: enabled")
ELSE(HAS_FLUIDSYNTH)
MESSAGE(STATUS "FluidSynth support: disabled")
ENDIF(HAS_FLUIDSYNTH)
MESSAGE(STATUS "")