aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07aa66d7..4efd396c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -882,7 +882,12 @@ IF(ALSOFT_EXAMPLES)
TARGET_LINK_LIBRARIES(allatency ex-common ${SDL_SOUND_LIBRARIES} ${LIBNAME})
SET_TARGET_PROPERTIES(allatency PROPERTIES INCLUDE_DIRECTORIES "${SDL_SOUND_INCLUDE_DIR}")
- INSTALL(TARGETS alstream alreverb allatency
+ ADD_EXECUTABLE(alloopback examples/alloopback.c)
+ TARGET_LINK_LIBRARIES(alloopback ex-common ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARIES} ${LIBNAME})
+ SET_TARGET_PROPERTIES(alloopback PROPERTIES INCLUDE_DIRECTORIES "${SDL_INCLUDE_DIR}"
+ INCLUDE_DIRECTORIES "${SDL_SOUND_INCLUDE_DIR}")
+
+ INSTALL(TARGETS alstream alreverb allatency alloopback
RUNTIME DESTINATION bin
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"