1 # CMakeLists.txt for ALURE
2 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
4 IF(COMMAND CMAKE_POLICY)
5 CMAKE_POLICY(SET CMP0003 NEW)
6 ENDIF(COMMAND CMAKE_POLICY)
8 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
10 INCLUDE(CheckCCompilerFlag)
11 INCLUDE(CheckCSourceCompiles)
12 INCLUDE(CheckFunctionExists)
13 INCLUDE(CheckIncludeFile)
14 INCLUDE(CheckIncludeFiles)
15 INCLUDE(CheckLibraryExists)
16 INCLUDE(CheckSharedFunctionExists)
17 INCLUDE(FindPkgConfig)
19 INCLUDE(CheckFileOffsetBits)
29 SET(LIB_MAJOR_VERSION "1")
30 SET(LIB_MINOR_VERSION "2")
31 SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}")
34 INCLUDE_DIRECTORIES(include "${ALURE_BINARY_DIR}")
37 OPTION(BUILD_SHARED "Build the shared version of the library" ON)
38 OPTION(BUILD_STATIC "Build the static version of the library" ON)
40 IF(NOT BUILD_SHARED AND NOT BUILD_STATIC)
41 MESSAGE(FATAL_ERROR "No libtype being built!")
42 ENDIF(NOT BUILD_SHARED AND NOT BUILD_STATIC)
44 IF(NOT CMAKE_BUILD_TYPE)
45 SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
46 "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
48 ENDIF(NOT CMAKE_BUILD_TYPE)
49 IF(NOT DEFINED CMAKE_DEBUG_POSTFIX)
50 SET(CMAKE_DEBUG_POSTFIX "" CACHE STRING
51 "Library postfix for debug builds. Normally left blank."
53 ENDIF(NOT DEFINED CMAKE_DEBUG_POSTFIX)
56 CHECK_LIBRARY_EXISTS(stdc++ memset "" HAS_STDCXX)
58 SET(EXTRA_LIBS stdc++ ${EXTRA_LIBS})
61 CHECK_LIBRARY_EXISTS(m pow "" HAS_LIBM)
63 SET(EXTRA_LIBS m ${EXTRA_LIBS})
66 CHECK_FILE_OFFSET_BITS()
68 ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=${_FILE_OFFSET_BITS})
69 SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -D_FILE_OFFSET_BITS=${_FILE_OFFSET_BITS})
70 ENDIF(_FILE_OFFSET_BITS)
72 CHECK_FUNCTION_EXISTS(fseeko HAVE_FSEEKO)
74 CHECK_FUNCTION_EXISTS(_fseeki64 HAVE__FSEEKI64)
75 ENDIF(NOT HAVE_FSEEKO)
77 SET(STATIC_CFLAGS "${STATIC_CFLAGS} -DALURE_STATIC_LIBRARY")
83 CHECK_C_SOURCE_COMPILES("int foo() __attribute__((constructor));
84 int main() {return 0;}" HAVE_GCC_CONSTRUCTOR)
86 # Force -fPIC for the static lib, because it causes problems when the
87 # static version is linked to a dynamic lib
88 SET(STATIC_CFLAGS "${STATIC_CFLAGS} -fPIC")
91 CHECK_C_COMPILER_FLAG(-Wextra HAVE_WEXTRA)
93 ADD_DEFINITIONS(-Wextra)
95 ADD_DEFINITIONS(-Wall)
97 CHECK_C_COMPILER_FLAG(-funswitch-loops HAVE_FUNSWITCH_LOOPS)
98 IF(HAVE_FUNSWITCH_LOOPS)
99 ADD_DEFINITIONS(-funswitch-loops)
100 ENDIF(HAVE_FUNSWITCH_LOOPS)
103 # Set visibility/export options if available
106 SET(EXPORT_DECL "__declspec(dllexport)")
108 CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_SWITCH)
109 CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"protected\")));
110 int main() {return 0;}" HAVE_GCC_VISIBILITY)
111 IF(HAVE_VISIBILITY_SWITCH AND HAVE_GCC_VISIBILITY)
112 ADD_DEFINITIONS(-fvisibility=hidden)
113 SET(EXPORT_DECL "__attribute__((visibility(\"protected\")))")
114 ENDIF(HAVE_VISIBILITY_SWITCH AND HAVE_GCC_VISIBILITY)
118 CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H -D_WIN32_WINNT=0x0500)
120 CHECK_INCLUDE_FILE(ddk/ntddcdrm.h HAVE_DDK_NTDDCDRM_H)
122 CHECK_C_COMPILER_FLAG(-pthread HAVE_PTHREAD)
124 ADD_DEFINITIONS(-pthread)
125 SET(EXTRA_LIBS ${EXTRA_LIBS} -pthread)
128 # We need pthreads outside of Windows
129 CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
130 IF(NOT HAVE_PTHREAD_H)
131 MESSAGE(FATAL_ERROR "PThreads is required for non-Windows builds!")
133 # Some systems need pthread_np.h to get recursive mutexes
134 CHECK_INCLUDE_FILES("pthread.h;pthread_np.h" HAVE_PTHREAD_NP_H)
136 # _GNU_SOURCE is needed on some systems for extra attributes, and
137 # _REENTRANT is needed for libc thread-safety
138 ADD_DEFINITIONS(-D_GNU_SOURCE=1)
139 CHECK_FUNCTION_EXISTS(pthread_create HAS_PTHREAD_CREATE)
140 IF(NOT HAS_PTHREAD_CREATE)
141 CHECK_SHARED_FUNCTION_EXISTS(pthread_create "pthread.h" pthread "" HAVE_LIBPTHREAD)
142 IF(NOT HAVE_LIBPTHREAD)
143 MESSAGE(FATAL_ERROR "pthread_create not found on non-Windows target!")
144 ENDIF(NOT HAVE_LIBPTHREAD)
145 SET(EXTRA_LIBS pthread ${EXTRA_LIBS})
146 ENDIF(NOT HAS_PTHREAD_CREATE)
148 CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP)
149 IF(NOT HAVE_NANOSLEEP)
150 MESSAGE(FATAL_ERROR "No sleep function found!")
151 ENDIF(NOT HAVE_NANOSLEEP)
152 ENDIF(HAVE_WINDOWS_H)
154 CHECK_INCLUDE_FILE(sys/types.h HAVE_SYS_TYPES_H)
155 CHECK_INCLUDE_FILE(sys/wait.h HAVE_SYS_WAIT_H)
156 CHECK_INCLUDE_FILE(signal.h HAVE_SIGNAL_H)
157 CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H)
160 CHECK_SHARED_FUNCTION_EXISTS(dlopen "dlfcn.h" dl "" HAVE_LIBDL)
162 SET(EXTRA_LIBS dl ${EXTRA_LIBS})
166 OPTION(DYNLOAD "Dynamically load support libs at run-time" ON)
167 OPTION(SNDFILE "SoundFile support (for various formats)" ON)
168 OPTION(VORBIS "VorbisFile support (for Ogg Vorbis)" ON)
169 OPTION(FLAC "FLAC support (for FLAC and Ogg FLAC)" OFF)
170 OPTION(MPG123 "MPG123 support (for MP1/MP2/MP3)" OFF)
171 OPTION(DUMB "DUMB support (for IT/XM/S3M/MOD)" OFF)
172 OPTION(MODPLUG "ModPlug support (for IT/XM/S3M/MOD)" OFF)
173 OPTION(FLUIDSYNTH "FluidSynth support (for MID)" OFF)
176 ADD_DEFINITIONS(-D_WIN32)
178 IF(NOT HAVE_DLFCN_H OR NOT HAVE_LIBDL)
180 ENDIF(NOT HAVE_DLFCN_H OR NOT HAVE_LIBDL)
181 PKG_CHECK_MODULES(OPENAL openal)
187 MESSAGE(FATAL_ERROR "OpenAL not found!\nPlease try setting the OPENALDIR environment variable and try again.")
188 ENDIF(NOT OPENAL_FOUND)
190 MESSAGE(STATUS "OpenAL include: ${OPENAL_INCLUDE_DIR}")
191 MESSAGE(STATUS "OpenAL lib: ${OPENAL_LIBRARY}")
193 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR})
194 SET(OPENAL_LIBRARIES ${OPENAL_LIBRARY})
195 ELSE(NOT OPENAL_FOUND)
196 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIRS})
197 LINK_DIRECTORIES(${OPENAL_LIBRARY_DIRS})
198 ENDIF(NOT OPENAL_FOUND)
201 SET(ALURE_OBJS src/alure.cpp
213 PKG_CHECK_MODULES(SNDFILE sndfile)
216 LINK_DIRECTORIES(${SNDFILE_LIBRARY_DIRS})
217 SET_SOURCE_FILES_PROPERTIES(src/codec_sndfile.cpp PROPERTIES
218 COMPILE_FLAGS "${SNDFILE_CFLAGS}")
220 FIND_PACKAGE(SndFile)
223 INCLUDE_DIRECTORIES(${SNDFILE_INCLUDE_DIRS})
227 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_sndfile.cpp)
230 SET(SNDFILE_LIBRARIES "")
235 PKG_CHECK_MODULES(VORBISFILE vorbisfile)
237 SET(HAS_VORBISFILE 1)
238 LINK_DIRECTORIES(${VORBISFILE_LIBRARY_DIRS})
239 SET_SOURCE_FILES_PROPERTIES(src/codec_vorbisfile.cpp PROPERTIES
240 COMPILE_FLAGS "${VORBISFILE_CFLAGS}")
241 ELSE(VORBISFILE_FOUND)
242 FIND_PACKAGE(OggVorbis)
244 SET(HAS_VORBISFILE 1)
245 INCLUDE_DIRECTORIES(${OGGVORBIS_INCLUDE_DIRS})
246 SET(VORBISFILE_LIBRARIES ${OGGVORBIS_LIBRARIES})
247 ENDIF(OGGVORBIS_FOUND)
248 ENDIF(VORBISFILE_FOUND)
249 IF(NOT HAS_VORBISFILE)
250 PKG_CHECK_MODULES(VORBISIDEC vorbisidec)
251 IF(NOT VORBISIDEC_FOUND)
252 CHECK_INCLUDE_FILE(tremor/ivorbisfile.h HAVE_TREMOR_IVORBISFILE_H)
253 IF(HAVE_TREMOR_IVORBISFILE_H)
254 CHECK_SHARED_FUNCTION_EXISTS(ov_open "tremor/ivorbisfile.h" vorbisidec "" HAVE_LIBVORBISIDEC)
255 IF(DYNLOAD OR HAVE_LIBVORBISIDEC)
256 SET(HAS_VORBISFILE 1)
257 IF(HAVE_LIBVORBISIDEC)
258 SET(VORBISFILE_LIBRARIES "vorbisidec")
259 ENDIF(HAVE_LIBVORBISIDEC)
260 SET_SOURCE_FILES_PROPERTIES(src/codec_vorbisfile.cpp PROPERTIES
261 COMPILE_FLAGS "-DHAS_VORBISIDEC")
262 ENDIF(DYNLOAD OR HAVE_LIBVORBISIDEC)
263 ENDIF(HAVE_TREMOR_IVORBISFILE_H)
264 ELSE(NOT VORBISIDEC_FOUND)
265 SET(HAS_VORBISFILE 1)
266 LINK_DIRECTORIES(${VORBISIDEC_LIBRARY_DIRS})
267 SET_SOURCE_FILES_PROPERTIES(src/codec_vorbisfile.cpp PROPERTIES
268 COMPILE_FLAGS "${VORBISIDEC_CFLAGS} -DHAS_VORBISIDEC")
269 ENDIF(NOT VORBISIDEC_FOUND)
270 ENDIF(NOT HAS_VORBISFILE)
272 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_vorbisfile.cpp)
273 ENDIF(HAS_VORBISFILE)
275 SET(VORBISFILE_LIBRARIES "")
282 INCLUDE_DIRECTORIES(${FLAC_INCLUDE_DIR})
286 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_flac.cpp)
289 SET(LIBFLAC_LIBRARIES "")
294 PKG_CHECK_MODULES(MPG123 libmpg123)
296 CHECK_INCLUDE_FILE(mpg123.h HAVE_MPG123_H)
298 CHECK_SHARED_FUNCTION_EXISTS(mpg123_init "mpg123.h" mpg123 "" HAVE_LIBMPG123)
299 IF(DYNLOAD OR HAVE_LIBMPG123)
302 SET(MPG123_LIBRARIES "mpg123")
303 ENDIF(HAVE_LIBMPG123)
304 ENDIF(DYNLOAD OR HAVE_LIBMPG123)
306 ELSE(NOT MPG123_FOUND)
308 LINK_DIRECTORIES(${MPG123_LIBRARY_DIRS})
309 SET_SOURCE_FILES_PROPERTIES(src/codec_mpg123.cpp PROPERTIES
310 COMPILE_FLAGS "${MPG123_CFLAGS}")
311 ENDIF(NOT MPG123_FOUND)
313 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_mpg123.cpp)
316 SET(MPG123_LIBRARIES "")
321 CHECK_INCLUDE_FILE(dumb.h HAVE_DUMB_H)
324 CHECK_LIBRARY_EXISTS("dumb;m" dumbfile_open_ex "" HAVE_LIBDUMB)
326 CHECK_LIBRARY_EXISTS(dumb dumbfile_open_ex "" HAVE_LIBDUMB)
328 IF(DYNLOAD OR HAVE_LIBDUMB)
331 SET(DUMB_LIBRARIES dumb)
333 ENDIF(DYNLOAD OR HAVE_LIBDUMB)
336 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_dumb.cpp)
339 SET(DUMB_LIBRARIES "")
344 CHECK_INCLUDE_FILE(libmodplug/modplug.h HAVE_LIBMODPLUG_MODPLUG_H)
345 IF(HAVE_LIBMODPLUG_MODPLUG_H)
346 CHECK_SHARED_FUNCTION_EXISTS(ModPlug_Load "libmodplug/modplug.h" modplug "" HAVE_LIBMODPLUG)
347 IF(DYNLOAD OR HAVE_LIBMODPLUG)
350 SET(MODPLUG_LIBRARIES "modplug")
351 ENDIF(HAVE_LIBMODPLUG)
352 ENDIF(DYNLOAD OR HAVE_LIBMODPLUG)
353 ENDIF(HAVE_LIBMODPLUG_MODPLUG_H)
355 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_modplug.cpp)
358 SET(MODPLUG_LIBRARIES "")
363 PKG_CHECK_MODULES(FLUIDSYNTH fluidsynth>=1.1.1)
364 IF(NOT FLUIDSYNTH_FOUND)
365 CHECK_INCLUDE_FILE(fluidsynth.h HAVE_FLUIDSYNTH_H)
366 IF(HAVE_FLUIDSYNTH_H)
367 CHECK_SHARED_FUNCTION_EXISTS(new_fluid_synth "fluidsynth.h" fluidsynth "" HAVE_LIBFLUIDSYNTH)
368 IF(DYNLOAD OR HAVE_LIBFLUIDSYNTH)
369 SET(HAS_FLUIDSYNTH 1)
370 IF(HAVE_LIBFLUIDSYNTH)
371 SET(FLUIDSYNTH_LIBRARIES "fluidsynth")
372 ENDIF(HAVE_LIBFLUIDSYNTH)
373 ENDIF(DYNLOAD OR HAVE_LIBFLUIDSYNTH)
374 ENDIF(HAVE_FLUIDSYNTH_H)
375 ELSE(NOT FLUIDSYNTH_FOUND)
376 SET(HAS_FLUIDSYNTH 1)
377 LINK_DIRECTORIES(${FLUIDSYNTH_LIBRARY_DIRS})
378 SET_SOURCE_FILES_PROPERTIES(src/codec_fluidsynth.cpp PROPERTIES
379 COMPILE_FLAGS "${FLUIDSYNTH_CFLAGS}")
380 ENDIF(NOT FLUIDSYNTH_FOUND)
382 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_fluidsynth.cpp)
383 ENDIF(HAS_FLUIDSYNTH)
385 SET(FLUIDSYNTH_LIBRARIES "")
390 SET(EXTRA_LIBS ${SNDFILE_LIBRARIES} ${VORBISFILE_LIBRARIES} ${LIBFLAC_LIBRARIES} ${MPG123_LIBRARIES} ${DUMB_LIBRARIES} ${MODPLUG_LIBRARIES} ${FLUIDSYNTH_LIBRARIES} ${EXTRA_LIBS})
392 ADD_DEFINITIONS(-DDYNLOAD=1)
396 SET(prefix ${CMAKE_INSTALL_PREFIX})
397 SET(exec_prefix "\${prefix}")
398 SET(libdir "\${exec_prefix}/lib${LIB_SUFFIX}")
399 SET(bindir "\${exec_prefix}/bin")
400 SET(includedir "\${prefix}/include")
401 SET(PKG_CONFIG_REQUIRES openal)
402 SET(PACKAGE_VERSION "${LIB_VERSION}")
406 "${ALURE_SOURCE_DIR}/config.h.in"
407 "${ALURE_BINARY_DIR}/config.h")
410 "${ALURE_SOURCE_DIR}/alure.pc.in"
411 "${ALURE_BINARY_DIR}/alure.pc"
416 "${ALURE_SOURCE_DIR}/alure-static.pc.in"
417 "${ALURE_BINARY_DIR}/alure-static.pc"
421 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
425 #build a shared library
426 ADD_LIBRARY(${LIBNAME} SHARED ${ALURE_OBJS})
427 SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES DEFINE_SYMBOL ALURE_BUILD_LIBRARY
428 VERSION ${LIB_VERSION}.0
429 SOVERSION ${LIB_MAJOR_VERSION})
431 SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "")
433 SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES LINK_FLAGS "-Wl,--version-script=${ALURE_SOURCE_DIR}/libalure.map")
435 TARGET_LINK_LIBRARIES(${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
437 INSTALL(TARGETS ${LIBNAME}
438 RUNTIME DESTINATION bin
439 LIBRARY DESTINATION lib${LIB_SUFFIX}
440 ARCHIVE DESTINATION lib${LIB_SUFFIX}
444 #build a static library
445 ADD_LIBRARY(${LIBNAME}-static STATIC ${ALURE_OBJS})
446 SET_TARGET_PROPERTIES(${LIBNAME}-static PROPERTIES DEFINE_SYMBOL ALURE_BUILD_LIBRARY
447 COMPILE_FLAGS ${STATIC_CFLAGS}
448 VERSION ${LIB_VERSION}.0)
449 INSTALL(TARGETS ${LIBNAME}-static
450 RUNTIME DESTINATION bin
451 LIBRARY DESTINATION lib${LIB_SUFFIX}
452 ARCHIVE DESTINATION lib${LIB_SUFFIX}
457 OPTION(BUILD_EXAMPLES "Build example programs" ON)
458 OPTION(INSTALL_EXAMPLES "Install example programs" ON)
461 IF(HAVE_DDK_NTDDCDRM_H)
462 SET_SOURCE_FILES_PROPERTIES(examples/alurecdplay.c PROPERTIES
463 COMPILE_FLAGS "-DHAVE_DDK_NTDDCDRM_H")
464 ENDIF(HAVE_DDK_NTDDCDRM_H)
465 ADD_EXECUTABLE(alureplay examples/alureplay.c)
466 ADD_EXECUTABLE(alurecdplay examples/alurecdplay.c)
467 ADD_EXECUTABLE(alurestream examples/alurestream.c)
469 TARGET_LINK_LIBRARIES(alureplay ${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
470 TARGET_LINK_LIBRARIES(alurecdplay ${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
471 TARGET_LINK_LIBRARIES(alurestream ${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
473 SET_TARGET_PROPERTIES(alureplay PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
474 SET_TARGET_PROPERTIES(alurecdplay PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
475 SET_TARGET_PROPERTIES(alurestream PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
476 TARGET_LINK_LIBRARIES(alureplay ${LIBNAME}-static ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
477 TARGET_LINK_LIBRARIES(alurecdplay ${LIBNAME}-static ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
478 TARGET_LINK_LIBRARIES(alurestream ${LIBNAME}-static ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
480 ENDIF(BUILD_EXAMPLES)
483 FIND_PROGRAM(NATDOCS_BIN NaturalDocs)
485 ADD_CUSTOM_TARGET(docs
486 "${NATDOCS_BIN}" -i "${ALURE_SOURCE_DIR}/src" -o HTML "${ALURE_SOURCE_DIR}/docs/html" -p "${ALURE_SOURCE_DIR}/docs/naturaldocs" -s Default CustomStyle
487 COMMENT "Building NaturalDocs documentation..." VERBATIM)
489 MESSAGE(STATUS "\nNaturalDocs not found; building documentation is disabled")
493 #add an install target here
500 INSTALL(DIRECTORY "${ALURE_SOURCE_DIR}/docs/html"
501 DESTINATION share/doc/alure
503 INSTALL(FILES include/AL/alure.h
504 DESTINATION "include/${INCPATH}"
507 INSTALL(FILES "${ALURE_BINARY_DIR}/alure.pc"
508 DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
512 INSTALL(FILES "${ALURE_BINARY_DIR}/alure-static.pc"
513 DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
516 IF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
517 INSTALL(TARGETS alureplay alurestream alurecdplay
518 RUNTIME DESTINATION bin)
519 ENDIF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
522 MESSAGE(STATUS "\n********************** Configured options **********************")
523 IF(BUILD_SHARED AND BUILD_STATIC)
524 MESSAGE(STATUS "Building shared, static library")
526 MESSAGE(STATUS "Building shared library")
527 ELSE(BUILD_SHARED AND BUILD_STATIC)
528 MESSAGE(STATUS "Building static library")
529 ENDIF(BUILD_SHARED AND BUILD_STATIC)
530 IF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
531 MESSAGE(STATUS "Building and installing examples")
532 ELSEIF(BUILD_EXAMPLES)
533 MESSAGE(STATUS "Building (not installing) examples")
534 ELSE(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
535 MESSAGE(STATUS "Not building examples")
536 ENDIF(BUILD_EXAMPLES AND INSTALL_EXAMPLES)
539 MESSAGE(STATUS "SndFile support: enabled")
541 MESSAGE(STATUS "SndFile support: disabled")
544 MESSAGE(STATUS "VorbisFile support: enabled")
546 MESSAGE(STATUS "VorbisFile support: disabled")
547 ENDIF(HAS_VORBISFILE)
549 MESSAGE(STATUS "FLAC support: enabled")
551 MESSAGE(STATUS "FLAC support: disabled")
554 MESSAGE(STATUS "MPG123 support: enabled")
556 MESSAGE(STATUS "MPG123 support: disabled")
559 MESSAGE(STATUS "DUMB support: enabled")
561 MESSAGE(STATUS "DUMB support: disabled")
564 MESSAGE(STATUS "ModPlug support: enabled")
566 MESSAGE(STATUS "ModPlug support: disabled")
569 MESSAGE(STATUS "FluidSynth support: enabled")
571 MESSAGE(STATUS "FluidSynth support: disabled")
572 ENDIF(HAS_FLUIDSYNTH)