2012-04-10 18:40:24 +00:00
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
2010-09-19 16:49:03 +00:00
|
|
|
FILE(GLOB HEADERS ../../include/nel/sound/*.h)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2012-04-10 18:40:24 +00:00
|
|
|
|
|
|
|
FILE(GLOB ANIMATION
|
|
|
|
sound_anim_manager.cpp ../../include/nel/sound/sound_anim_manager.h
|
|
|
|
sound_anim_marker.cpp ../../include/nel/sound/sound_anim_marker.h
|
|
|
|
sound_animation.cpp ../../include/nel/sound/sound_animation.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB BACKGROUND_SOUND
|
|
|
|
background_sound.cpp ../../include/nel/sound/background_sound.h
|
|
|
|
background_sound_manager.cpp ../../include/nel/sound/background_sound_manager.h
|
|
|
|
background_source.cpp ../../include/nel/sound/background_source.h
|
|
|
|
clustered_sound.cpp ../../include/nel/sound/clustered_sound.h
|
|
|
|
context_sound.cpp ../../include/nel/sound/context_sound.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB BANKS
|
|
|
|
async_file_manager_sound.cpp ../../include/nel/sound/async_file_manager_sound.h
|
|
|
|
sample_bank.cpp ../../include/nel/sound/sample_bank.h
|
|
|
|
sample_bank_manager.cpp ../../include/nel/sound/sample_bank_manager.h
|
|
|
|
sound_bank.cpp ../../include/nel/sound/sound_bank.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB MIXER
|
|
|
|
audio_mixer_user.cpp ../../include/nel/sound/audio_mixer_user.h
|
|
|
|
../../include/nel/sound/containers.h
|
|
|
|
group_controller.cpp ../../include/nel/sound/group_controller.h
|
|
|
|
group_controller_root.cpp ../../include/nel/sound/group_controller_root.h
|
|
|
|
listener_user.cpp ../../include/nel/sound/listener_user.h
|
|
|
|
mixing_track.cpp ../../include/nel/sound/mixing_track.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB MUSIC
|
|
|
|
music_channel_fader.cpp ../../include/nel/sound/music_channel_fader.h
|
|
|
|
music_sound.cpp ../../include/nel/sound/music_sound.h
|
|
|
|
music_sound_manager.cpp ../../include/nel/sound/music_sound_manager.h
|
|
|
|
music_source.cpp ../../include/nel/sound/music_source.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB SOUND
|
|
|
|
complex_sound.cpp ../../include/nel/sound/complex_sound.h
|
|
|
|
complex_source.cpp ../../include/nel/sound/complex_source.h
|
|
|
|
simple_sound.cpp ../../include/nel/sound/simple_sound.h
|
|
|
|
simple_source.cpp ../../include/nel/sound/simple_source.h
|
|
|
|
sound.cpp ../../include/nel/sound/sound.h
|
|
|
|
../../include/nel/sound/sound_pattern.h
|
|
|
|
source_common.cpp ../../include/nel/sound/source_common.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB STREAM
|
|
|
|
stream_sound.cpp ../../include/nel/sound/stream_sound.h
|
|
|
|
stream_source.cpp ../../include/nel/sound/stream_source.h
|
|
|
|
)
|
|
|
|
|
|
|
|
FILE(GLOB USER_CLASSES
|
|
|
|
../../include/nel/sound/u_audio_mixer.h
|
|
|
|
../../include/nel/sound/u_group_controller.h
|
|
|
|
../../include/nel/sound/u_listener.h
|
|
|
|
../../include/nel/sound/u_source.h
|
|
|
|
../../include/nel/sound/u_stream_source.h
|
|
|
|
)
|
|
|
|
|
|
|
|
SOURCE_GROUP("" FILES ${SRC} ${HEADERS})
|
|
|
|
SOURCE_GROUP("animation" FILES ${ANIMATION})
|
|
|
|
SOURCE_GROUP("background_sound" FILES ${BACKGROUND_SOUND})
|
|
|
|
SOURCE_GROUP("banks" FILES ${BANKS})
|
|
|
|
SOURCE_GROUP("mixer" FILES ${MIXER})
|
|
|
|
SOURCE_GROUP("music_deprecated" FILES ${MUSIC})
|
|
|
|
SOURCE_GROUP("sound" FILES ${SOUND})
|
|
|
|
SOURCE_GROUP("stream" FILES ${STREAM})
|
|
|
|
SOURCE_GROUP("user_classes" FILES ${USER_CLASSES})
|
|
|
|
|
|
|
|
|
2010-09-19 16:49:03 +00:00
|
|
|
NL_TARGET_LIB(nelsound ${HEADERS} ${SRC})
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2012-04-10 18:40:24 +00:00
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${VORBIS_INCLUDE_DIR})
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelsound ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY})
|
|
|
|
|
|
|
|
IF(WITH_STATIC)
|
|
|
|
# Add libogg dependency only if target is static because to libvorbisfile
|
|
|
|
TARGET_LINK_LIBRARIES(nelsound ${OGG_LIBRARY})
|
|
|
|
ENDIF(WITH_STATIC)
|
|
|
|
|
|
|
|
|
2010-05-06 00:08:41 +00:00
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
|
2010-08-11 12:41:10 +00:00
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(nelsound ${LIBXML2_LIBRARIES} nelmisc nelligo nelgeorges nel3d nelsnd_lowlevel)
|
2010-09-01 21:30:06 +00:00
|
|
|
SET_TARGET_PROPERTIES(nelsound PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
2010-09-03 14:02:04 +00:00
|
|
|
NL_DEFAULT_PROPS(nelsound "NeL, Library: NeL Sound")
|
2010-09-14 11:51:44 +00:00
|
|
|
NL_ADD_RUNTIME_FLAGS(nelsound)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-08-11 12:41:10 +00:00
|
|
|
NL_ADD_LIB_SUFFIX(nelsound)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-09-01 21:30:06 +00:00
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
2010-06-30 13:31:31 +00:00
|
|
|
IF(WITH_PCH)
|
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(nelsound ${CMAKE_CURRENT_SOURCE_DIR}/stdsound.h ${CMAKE_CURRENT_SOURCE_DIR}/stdsound.cpp)
|
|
|
|
ENDIF(WITH_PCH)
|
2010-06-25 06:33:15 +00:00
|
|
|
|
2010-08-11 12:41:10 +00:00
|
|
|
NL_GEN_PC(nel-sound.pc)
|
2011-09-11 12:44:37 +00:00
|
|
|
|
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
|
|
|
INSTALL(TARGETS nelsound LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
|
|
|
ADD_SUBDIRECTORY(driver)
|