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(CheckSharedLibraryExists)
17 INCLUDE(FindPkgConfig)
19 INCLUDE(CheckFileOffsetBits)
29 SET(LIB_MAJOR_VERSION "1")
30 SET(LIB_MINOR_VERSION "1")
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_SHARED_LIBRARY_EXISTS(stdc++ memset "" HAS_STDCXX)
58 SET(EXTRA_LIBS stdc++ ${EXTRA_LIBS})
61 CHECK_SHARED_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 CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_GCC_VISIBILITY)
87 IF(HAVE_GCC_VISIBILITY)
88 ADD_DEFINITIONS(-fvisibility=hidden)
89 ENDIF(HAVE_GCC_VISIBILITY)
91 # Force -fPIC for the static lib, because it causes problems when the
92 # static version is linked to a dynamic lib
93 SET(STATIC_CFLAGS "${STATIC_CFLAGS} -fPIC")
96 CHECK_C_COMPILER_FLAG(-Wextra HAVE_WEXTRA)
98 ADD_DEFINITIONS(-Wextra)
100 ADD_DEFINITIONS(-Wall)
102 CHECK_C_COMPILER_FLAG(-funswitch-loops HAVE_FUNSWITCH_LOOPS)
103 IF(HAVE_FUNSWITCH_LOOPS)
104 ADD_DEFINITIONS(-funswitch-loops)
105 ENDIF(HAVE_FUNSWITCH_LOOPS)
109 CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H -D_WIN32_WINNT=0x0500)
110 IF(NOT HAVE_WINDOWS_H)
111 CHECK_C_COMPILER_FLAG(-pthread HAVE_PTHREAD)
113 ADD_DEFINITIONS(-pthread)
114 SET(EXTRA_LIBS ${EXTRA_LIBS} -pthread)
117 # We need pthreads outside of Windows
118 CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
119 IF(NOT HAVE_PTHREAD_H)
120 MESSAGE(FATAL_ERROR "PThreads is required for non-Windows builds!")
122 # Some systems need pthread_np.h to get recursive mutexes
123 CHECK_INCLUDE_FILES("pthread.h;pthread_np.h" HAVE_PTHREAD_NP_H)
125 # _GNU_SOURCE is needed on some systems for extra attributes, and
126 # _REENTRANT is needed for libc thread-safety
127 ADD_DEFINITIONS(-D_GNU_SOURCE=1)
128 CHECK_FUNCTION_EXISTS(pthread_create HAS_PTHREAD_CREATE)
129 IF(NOT HAS_PTHREAD_CREATE)
130 CHECK_SHARED_LIBRARY_EXISTS(pthread pthread_create "" HAVE_LIBPTHREAD)
131 IF(NOT HAVE_LIBPTHREAD)
132 MESSAGE(FATAL_ERROR "pthread_create not found on non-Windows target!")
133 ENDIF(NOT HAVE_LIBPTHREAD)
134 SET(EXTRA_LIBS pthread ${EXTRA_LIBS})
135 ENDIF(NOT HAS_PTHREAD_CREATE)
137 CHECK_FUNCTION_EXISTS(nanosleep HAVE_NANOSLEEP)
138 IF(NOT HAVE_NANOSLEEP)
139 MESSAGE(FATAL_ERROR "No sleep function found!")
140 ENDIF(NOT HAVE_NANOSLEEP)
141 ENDIF(NOT HAVE_WINDOWS_H)
143 CHECK_INCLUDE_FILE(sys/types.h HAVE_SYS_TYPES_H)
144 CHECK_INCLUDE_FILE(sys/wait.h HAVE_SYS_WAIT_H)
145 CHECK_INCLUDE_FILE(signal.h HAVE_SIGNAL_H)
146 CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H)
149 CHECK_SHARED_LIBRARY_EXISTS(dl dlopen "" HAVE_LIBDL)
151 SET(EXTRA_LIBS dl ${EXTRA_LIBS})
155 OPTION(DYNLOAD "Dynamically load support libs at run-time" ON)
156 OPTION(SNDFILE "SoundFile support (for various formats)" ON)
157 OPTION(VORBIS "VorbisFile support (for Ogg Vorbis)" ON)
158 OPTION(FLAC "FLAC support (for FLAC and Ogg FLAC)" ON)
159 OPTION(MPG123 "MPG123 support (for MP1/MP2/MP3)" ON)
160 OPTION(DUMB "DUMB support (for IT/XM/S3M/MOD)" ON)
161 OPTION(MODPLUG "ModPlug support (for IT/XM/S3M/MOD)" OFF)
162 OPTION(FLUIDSYNTH "FluidSynth support (for MID)" ON)
165 ADD_DEFINITIONS(-D_WIN32)
167 IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
170 ELSE(CMAKE_SIZEOF_VOID_P MATCHES "8")
173 ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
175 SET(OPENAL_SEARCH_PATHS
178 "C:/Program Files/OpenAL 1.1 SDK"
179 "C:/Program Files (x86)/OpenAL 1.1 SDK"
180 "E:/Programs/Dev/OpenAL"
181 "E:/Program Files (x86)/OpenAL 1.1 SDK" )
183 FIND_PATH(OPENAL_INCLUDE_DIR al.h
184 PATHS ${OPENAL_SEARCH_PATHS}
185 PATH_SUFFIXES include include/AL )
186 IF(OPENAL_INCLUDE_DIR)
187 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR})
188 FIND_LIBRARY(OPENAL_LIBRARIES OpenAL32
189 PATHS ${OPENAL_SEARCH_PATHS}
190 PATH_SUFFIXES lib libs/${WIN_TYPE} )
191 ENDIF(OPENAL_INCLUDE_DIR)
193 IF(NOT OPENAL_LIBRARIES)
194 MESSAGE(FATAL_ERROR "OpenAL not found!\nPlease try setting the ALSDK_DIR environment variable and try again.")
195 ENDIF(NOT OPENAL_LIBRARIES)
197 MESSAGE(STATUS "OpenAL include: ${OPENAL_INCLUDE_DIR}")
198 MESSAGE(STATUS "OpenAL lib: ${OPENAL_LIBRARIES}")
200 IF(NOT HAVE_DLFCN_H OR NOT HAVE_LIBDL)
202 ENDIF(NOT HAVE_DLFCN_H OR NOT HAVE_LIBDL)
204 PKG_CHECK_MODULES(OPENAL openal)
207 CHECK_INCLUDE_FILE(OpenAL/al.h HAVE_OPENAL_AL_H)
209 SET(OPENAL_LIBRARIES "-framework OpenAL")
211 ENDIF(HAVE_OPENAL_AL_H)
213 CHECK_INCLUDE_FILE(AL/al.h HAVE_AL_AL_H)
215 CHECK_SHARED_LIBRARY_EXISTS(openal alcOpenDevice "" HAS_OPENAL)
217 SET(OPENAL_LIBRARIES openal)
222 MESSAGE(FATAL_ERROR "OpenAL not found!")
223 ENDIF(NOT HAS_OPENAL)
224 ELSE(NOT OPENAL_FOUND)
225 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIRS})
226 LINK_DIRECTORIES(${OPENAL_LIBRARY_DIRS})
227 ENDIF(NOT OPENAL_FOUND)
231 SET(ALURE_OBJS src/alure.cpp
243 PKG_CHECK_MODULES(SNDFILE sndfile)
244 IF(NOT SNDFILE_FOUND)
245 CHECK_INCLUDE_FILE(sndfile.h HAVE_SNDFILE_H)
247 CHECK_SHARED_LIBRARY_EXISTS(sndfile sf_open "" HAVE_LIBSNDFILE)
248 CHECK_SHARED_LIBRARY_EXISTS(libsndfile-1 sf_open "" HAVE_LIBSNDFILE1)
249 IF(DYNLOAD OR HAVE_LIBSNDFILE OR HAVE_LIBSNDFILE1)
252 SET(SNDFILE_LIBRARIES "sndfile")
253 ELSEIF(HAVE_LIBSNDFILE1)
254 SET(SNDFILE_LIBRARIES "libsndfile-1")
255 ENDIF(HAVE_LIBSNDFILE)
256 ENDIF(DYNLOAD OR HAVE_LIBSNDFILE OR HAVE_LIBSNDFILE1)
257 ENDIF(HAVE_SNDFILE_H)
258 ELSE(NOT SNDFILE_FOUND)
260 LINK_DIRECTORIES(${SNDFILE_LIBRARY_DIRS})
261 SET_SOURCE_FILES_PROPERTIES(src/codec_sndfile.cpp PROPERTIES
262 COMPILE_FLAGS "${SNDFILE_CFLAGS}")
263 ENDIF(NOT SNDFILE_FOUND)
265 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_sndfile.cpp)
268 SET(SNDFILE_LIBRARIES "")
273 PKG_CHECK_MODULES(VORBISFILE vorbisfile)
274 IF(NOT VORBISFILE_FOUND)
275 CHECK_INCLUDE_FILE(vorbis/vorbisfile.h HAVE_VORBIS_VORBISFILE_H)
276 IF(HAVE_VORBIS_VORBISFILE_H)
277 CHECK_SHARED_LIBRARY_EXISTS(vorbisfile ov_open "" HAVE_LIBVORBISFILE)
278 IF(DYNLOAD OR HAVE_LIBVORBISFILE)
279 SET(HAS_VORBISFILE 1)
280 IF(HAVE_LIBVORBISFILE)
281 SET(VORBISFILE_LIBRARIES "vorbisfile")
282 ENDIF(HAVE_LIBVORBISFILE)
283 ENDIF(DYNLOAD OR HAVE_LIBVORBISFILE)
284 ENDIF(HAVE_VORBIS_VORBISFILE_H)
285 ELSE(NOT VORBISFILE_FOUND)
286 SET(HAS_VORBISFILE 1)
287 LINK_DIRECTORIES(${VORBISFILE_LIBRARY_DIRS})
288 SET_SOURCE_FILES_PROPERTIES(src/codec_vorbisfile.cpp PROPERTIES
289 COMPILE_FLAGS "${VORBISFILE_CFLAGS}")
290 ENDIF(NOT VORBISFILE_FOUND)
292 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_vorbisfile.cpp)
293 ENDIF(HAS_VORBISFILE)
295 SET(VORBISFILE_LIBRARIES "")
300 #PKG_CHECK_MODULES(LIBFLAC flac)
301 #IF(NOT LIBFLAC_FOUND)
302 CHECK_INCLUDE_FILE(FLAC/all.h HAVE_FLAC_ALL_H)
304 CHECK_SHARED_LIBRARY_EXISTS(FLAC FLAC__stream_decoder_new "" HAVE_LIBFLAC)
305 IF(DYNLOAD OR HAVE_LIBFLAC)
308 SET(LIBFLAC_LIBRARIES "FLAC")
310 ENDIF(DYNLOAD OR HAVE_LIBFLAC)
311 ENDIF(HAVE_FLAC_ALL_H)
312 #ELSE(NOT LIBFLAC_FOUND)
314 # INCLUDE_DIRECTORIES(${LIBFLAC_INCLUDE_DIRS})
315 # LINK_DIRECTORIES(${LIBFLAC_LIBRARY_DIRS})
316 #ENDIF(NOT LIBFLAC_FOUND)
318 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_flac.cpp)
321 SET(LIBFLAC_LIBRARIES "")
326 PKG_CHECK_MODULES(MPG123 libmpg123)
328 CHECK_INCLUDE_FILE(mpg123.h HAVE_MPG123_H)
330 CHECK_SHARED_LIBRARY_EXISTS(mpg123 mpg123_init "" HAVE_LIBMPG123)
331 IF(DYNLOAD OR HAVE_LIBMPG123)
334 SET(MPG123_LIBRARIES "mpg123")
335 ENDIF(HAVE_LIBMPG123)
336 ENDIF(DYNLOAD OR HAVE_LIBMPG123)
338 ELSE(NOT MPG123_FOUND)
340 LINK_DIRECTORIES(${MPG123_LIBRARY_DIRS})
341 SET_SOURCE_FILES_PROPERTIES(src/codec_mpg123.cpp PROPERTIES
342 COMPILE_FLAGS "${MPG123_CFLAGS}")
343 ENDIF(NOT MPG123_FOUND)
345 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_mpg123.cpp)
348 SET(MPG123_LIBRARIES "")
353 CHECK_INCLUDE_FILE(dumb.h HAVE_DUMB_H)
356 CHECK_LIBRARY_EXISTS("dumb;m" dumbfile_open_ex "" HAVE_LIBDUMB)
358 CHECK_LIBRARY_EXISTS(dumb dumbfile_open_ex "" HAVE_LIBDUMB)
360 IF(DYNLOAD OR HAVE_LIBDUMB)
363 SET(DUMB_LIBRARIES dumb)
365 ENDIF(DYNLOAD OR HAVE_LIBDUMB)
368 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_dumb.cpp)
371 SET(DUMB_LIBRARIES "")
376 PKG_CHECK_MODULES(MODPLUG libmodplug)
377 IF(NOT MODPLUG_FOUND)
378 CHECK_INCLUDE_FILE(modplug.h HAVE_MODPLUG_H)
380 CHECK_SHARED_LIBRARY_EXISTS(modplug ModPlug_Load "" HAVE_LIBMODPLUG)
381 IF(DYNLOAD OR HAVE_LIBMODPLUG)
384 SET(MODPLUG_LIBRARIES "modplug")
385 ENDIF(HAVE_LIBMODPLUG)
386 ENDIF(DYNLOAD OR HAVE_LIBMODPLUG)
387 ENDIF(HAVE_MODPLUG_H)
388 ELSE(NOT MODPLUG_FOUND)
390 LINK_DIRECTORIES(${MODPLUG_LIBRARY_DIRS})
391 SET_SOURCE_FILES_PROPERTIES(src/codec_modplug.cpp PROPERTIES
392 COMPILE_FLAGS "${MODPLUG_CFLAGS}")
393 ENDIF(NOT MODPLUG_FOUND)
395 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_modplug.cpp)
398 SET(MODPLUG_LIBRARIES "")
403 PKG_CHECK_MODULES(FLUIDSYNTH fluidsynth>=1.1.1)
404 IF(NOT FLUIDSYNTH_FOUND)
405 CHECK_INCLUDE_FILE(fluidsynth.h HAVE_FLUIDSYNTH_H)
406 IF(HAVE_FLUIDSYNTH_H)
407 CHECK_SHARED_LIBRARY_EXISTS(fluidsynth new_fluid_synth "" HAVE_LIBFLUIDSYNTH)
408 IF(DYNLOAD OR HAVE_LIBFLUIDSYNTH)
409 SET(HAS_FLUIDSYNTH 1)
410 IF(HAVE_LIBFLUIDSYNTH)
411 SET(FLUIDSYNTH_LIBRARIES "fluidsynth")
412 ENDIF(HAVE_LIBFLUIDSYNTH)
413 ENDIF(DYNLOAD OR HAVE_LIBFLUIDSYNTH)
414 ENDIF(HAVE_FLUIDSYNTH_H)
415 ELSE(NOT FLUIDSYNTH_FOUND)
416 SET(HAS_FLUIDSYNTH 1)
417 LINK_DIRECTORIES(${FLUIDSYNTH_LIBRARY_DIRS})
418 SET_SOURCE_FILES_PROPERTIES(src/codec_fluidsynth.cpp PROPERTIES
419 COMPILE_FLAGS "${FLUIDSYNTH_CFLAGS}")
420 ENDIF(NOT FLUIDSYNTH_FOUND)
422 SET(ALURE_OBJS ${ALURE_OBJS} src/codec_fluidsynth.cpp)
423 ENDIF(HAS_FLUIDSYNTH)
425 SET(FLUIDSYNTH_LIBRARIES "")
430 SET(EXTRA_LIBS ${SNDFILE_LIBRARIES} ${VORBISFILE_LIBRARIES} ${LIBFLAC_LIBRARIES} ${MPG123_LIBRARIES} ${DUMB_LIBRARIES} ${MODPLUG_LIBRARIES} ${FLUIDSYNTH_LIBRARIES} ${EXTRA_LIBS})
432 ADD_DEFINITIONS(-DDYNLOAD=1)
436 SET(prefix ${CMAKE_INSTALL_PREFIX})
437 SET(exec_prefix "\${prefix}")
438 SET(libdir "\${exec_prefix}/lib${LIB_SUFFIX}")
439 SET(bindir "\${exec_prefix}/bin")
440 SET(includedir "\${prefix}/include")
441 SET(PKG_CONFIG_REQUIRES openal)
442 SET(PACKAGE_VERSION "${LIB_VERSION}")
446 "${ALURE_SOURCE_DIR}/config.h.in"
447 "${ALURE_BINARY_DIR}/config.h")
450 "${ALURE_SOURCE_DIR}/alure.pc.in"
451 "${ALURE_BINARY_DIR}/alure.pc"
456 "${ALURE_SOURCE_DIR}/alure-static.pc.in"
457 "${ALURE_BINARY_DIR}/alure-static.pc"
461 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
465 #build a shared library
466 ADD_LIBRARY(${LIBNAME} SHARED ${ALURE_OBJS})
467 SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES DEFINE_SYMBOL ALURE_BUILD_LIBRARY
468 VERSION ${LIB_VERSION}.0
469 SOVERSION ${LIB_MAJOR_VERSION})
471 SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES PREFIX "")
473 SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES LINK_FLAGS "-Wl,--version-script=${ALURE_SOURCE_DIR}/libalure.map")
475 TARGET_LINK_LIBRARIES(${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
477 INSTALL(TARGETS ${LIBNAME}
478 RUNTIME DESTINATION bin
479 LIBRARY DESTINATION lib${LIB_SUFFIX}
480 ARCHIVE DESTINATION lib${LIB_SUFFIX}
484 #build a static library
485 ADD_LIBRARY(${LIBNAME}-static STATIC ${ALURE_OBJS})
486 SET_TARGET_PROPERTIES(${LIBNAME}-static PROPERTIES DEFINE_SYMBOL ALURE_BUILD_LIBRARY
487 COMPILE_FLAGS ${STATIC_CFLAGS}
488 VERSION ${LIB_VERSION}.0)
489 INSTALL(TARGETS ${LIBNAME}-static
490 RUNTIME DESTINATION bin
491 LIBRARY DESTINATION lib${LIB_SUFFIX}
492 ARCHIVE DESTINATION lib${LIB_SUFFIX}
497 ADD_EXECUTABLE(alureplay examples/alureplay.c)
498 ADD_EXECUTABLE(alurecdplay examples/alurecdplay.c)
499 ADD_EXECUTABLE(alurestream examples/alurestream.c)
501 TARGET_LINK_LIBRARIES(alureplay ${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
502 TARGET_LINK_LIBRARIES(alurecdplay ${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
503 TARGET_LINK_LIBRARIES(alurestream ${LIBNAME} ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
505 SET_TARGET_PROPERTIES(alureplay PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
506 SET_TARGET_PROPERTIES(alurecdplay PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
507 SET_TARGET_PROPERTIES(alurestream PROPERTIES COMPILE_FLAGS -DALURE_STATIC_LIBRARY)
508 TARGET_LINK_LIBRARIES(alureplay ${LIBNAME}-static ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
509 TARGET_LINK_LIBRARIES(alurecdplay ${LIBNAME}-static ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
510 TARGET_LINK_LIBRARIES(alurestream ${LIBNAME}-static ${OPENAL_LIBRARIES} ${EXTRA_LIBS})
514 FIND_PROGRAM(NATDOCS_BIN NaturalDocs)
516 ADD_CUSTOM_TARGET(docs
517 "${NATDOCS_BIN}" -i "${ALURE_SOURCE_DIR}/src" -o HTML "${ALURE_SOURCE_DIR}/docs/html" -p "${ALURE_SOURCE_DIR}/docs/naturaldocs" -s Default CustomStyle
518 COMMENT "Building NaturalDocs documentation..." VERBATIM)
520 MESSAGE(STATUS "\nNaturalDocs not found; building documentation is disabled")
524 #add an install target here
531 INSTALL(DIRECTORY "${ALURE_SOURCE_DIR}/docs/html"
532 DESTINATION share/doc/alure
534 INSTALL(FILES include/AL/alure.h
535 DESTINATION "include/${INCPATH}"
538 INSTALL(FILES "${ALURE_BINARY_DIR}/alure.pc"
539 DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
543 INSTALL(FILES "${ALURE_BINARY_DIR}/alure-static.pc"
544 DESTINATION "lib${LIB_SUFFIX}/pkgconfig"
549 MESSAGE(STATUS "\n********************** Configured options **********************")
550 IF(BUILD_SHARED AND BUILD_STATIC)
551 MESSAGE(STATUS "Building shared, static library")
553 MESSAGE(STATUS "Building shared library")
554 ELSE(BUILD_SHARED AND BUILD_STATIC)
555 MESSAGE(STATUS "Building static library")
556 ENDIF(BUILD_SHARED AND BUILD_STATIC)
559 MESSAGE(STATUS "SndFile support: enabled")
561 MESSAGE(STATUS "SndFile support: disabled")
564 MESSAGE(STATUS "VorbisFile support: enabled")
566 MESSAGE(STATUS "VorbisFile support: disabled")
567 ENDIF(HAS_VORBISFILE)
569 MESSAGE(STATUS "FLAC support: enabled")
571 MESSAGE(STATUS "FLAC support: disabled")
574 MESSAGE(STATUS "MPG123 support: enabled")
576 MESSAGE(STATUS "MPG123 support: disabled")
579 MESSAGE(STATUS "DUMB support: enabled")
581 MESSAGE(STATUS "DUMB support: disabled")
584 MESSAGE(STATUS "ModPlug support: enabled")
586 MESSAGE(STATUS "ModPlug support: disabled")
589 MESSAGE(STATUS "FluidSynth support: enabled")
591 MESSAGE(STATUS "FluidSynth support: disabled")
592 ENDIF(HAS_FLUIDSYNTH)