From b2a257b6b0f267228d98d8fd1184c9968faeb344 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 17 Jul 2010 01:02:51 -0700 Subject: [PATCH] Rename examples to utilities There is only the one, and it more accurately reflects what it is --- CMakeLists.txt | 37 +++++++++++++++++++++---------------- {examples => utils}/openal-info.c | 0 2 files changed, 21 insertions(+), 16 deletions(-) rename {examples => utils}/openal-info.c (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c203947..eb17a808 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ OPTION(DLOPEN "Check for the dlopen API for loading optional libs" ON) OPTION(WERROR "Treat compile warnings as errors" OFF) -OPTION(EXAMPLES "Build example programs" ON) +OPTION(UTILS "Build and install utility programs" ON) OPTION(ALSOFT_CONFIG "Install alsoft.conf configuration file" OFF) @@ -489,33 +489,38 @@ INSTALL(FILES include/AL/al.h INSTALL(FILES "${OpenAL_BINARY_DIR}/openal.pc" DESTINATION "lib${LIB_SUFFIX}/pkgconfig") + +MESSAGE(STATUS "") +MESSAGE(STATUS "Building OpenAL with support for the following backends:") +MESSAGE(STATUS " ${BACKENDS}") +MESSAGE(STATUS "") + +IF(WIN32) + IF(NOT HAVE_DSOUND) + MESSAGE(STATUS "WARNING: Building the Windows version without DirectSound output") + MESSAGE(STATUS " This is probably NOT what you want!") + MESSAGE(STATUS "") + ENDIF() +ENDIF() + # Install alsoft.conf configuration file IF(ALSOFT_CONFIG) INSTALL(FILES alsoftrc.sample DESTINATION /etc/openal RENAME alsoft.conf ) + MESSAGE(STATUS "Installing sample alsoft.conf") + MESSAGE(STATUS "") ENDIF() -IF(EXAMPLES) - ADD_EXECUTABLE(openal-info examples/openal-info.c) +IF(UTILS) + ADD_EXECUTABLE(openal-info utils/openal-info.c) TARGET_LINK_LIBRARIES(openal-info ${LIBNAME}) INSTALL(TARGETS openal-info RUNTIME DESTINATION bin LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" ) -ENDIF() - -MESSAGE(STATUS "") -MESSAGE(STATUS "Building OpenAL with support for the following backends:") -MESSAGE(STATUS " ${BACKENDS}") -MESSAGE(STATUS "") - -IF(WIN32) - IF(NOT HAVE_DSOUND) - MESSAGE(STATUS "WARNING: Building the Windows version without DirectSound output") - MESSAGE(STATUS " This is probably NOT what you want!") - MESSAGE(STATUS "") - ENDIF() + MESSAGE(STATUS "Building utility programs") + MESSAGE(STATUS "") ENDIF() diff --git a/examples/openal-info.c b/utils/openal-info.c similarity index 100% rename from examples/openal-info.c rename to utils/openal-info.c -- 2.11.4.GIT