From e4da1224cbfd85bad56863d5a512fd197cc3a09b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 17 May 2009 22:36:45 -0700 Subject: [PATCH] Optionally install the sample configuration file --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 749e0122..509b5591 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,8 @@ OPTION(WERROR "Treat compile warnings as errors" OFF) OPTION(EXAMPLES "Build example programs" ON) +OPTION(ALSOFT_CONFIG "Install alsoft.conf configuration file" OFF) + IF(WIN32) SET(LIBNAME OpenAL32) @@ -406,6 +408,14 @@ INSTALL(FILES include/AL/al.h INSTALL(FILES "${OpenAL_BINARY_DIR}/admin/pkgconfig/openal.pc" DESTINATION "${LIB_INSTALL_DIR}/pkgconfig") +# Install alsoft.conf configuration file +IF(ALSOFT_CONFIG) + INSTALL(FILES alsoftrc.sample + DESTINATION /etc/openal + RENAME alsoft.conf + ) +ENDIF() + IF(EXAMPLES) ADD_EXECUTABLE(openal-info examples/openal-info.c) TARGET_LINK_LIBRARIES(openal-info ${LIBNAME}) -- 2.11.4.GIT