diff options
author | Chris Robinson <[email protected]> | 2010-07-17 01:02:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-07-17 01:02:51 -0700 |
commit | b2a257b6b0f267228d98d8fd1184c9968faeb344 (patch) | |
tree | 87c41d4ddb76705004c53659c677a05c232ad056 | |
parent | cde577690a80a1551ae89a2fc07be8b9ccaf5d97 (diff) |
Rename examples to utilities
There is only the one, and it more accurately reflects what it is
-rw-r--r-- | CMakeLists.txt | 37 | ||||
-rw-r--r-- | utils/openal-info.c (renamed from examples/openal-info.c) | 0 |
2 files changed, 21 insertions, 16 deletions
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 index 586a1c73..586a1c73 100644 --- a/examples/openal-info.c +++ b/utils/openal-info.c |