Lime3DS/src/audio_core/CMakeLists.txt

45 lines
1.0 KiB
CMake
Raw Normal View History

set(SRCS
audio_core.cpp
codec.cpp
hle/dsp.cpp
hle/filter.cpp
2016-04-27 08:22:39 +02:00
hle/mixers.cpp
hle/pipe.cpp
2016-04-25 09:54:57 +02:00
hle/source.cpp
2016-04-24 22:11:47 +02:00
interpolate.cpp
2016-04-28 15:28:59 +02:00
sink_details.cpp
time_stretch.cpp
)
set(HEADERS
audio_core.h
codec.h
hle/common.h
hle/dsp.h
hle/filter.h
2016-04-27 08:22:39 +02:00
hle/mixers.h
hle/pipe.h
2016-04-25 09:54:57 +02:00
hle/source.h
2016-04-24 22:11:47 +02:00
interpolate.h
2016-04-27 13:04:15 +02:00
null_sink.h
sink.h
2016-04-28 15:28:59 +02:00
sink_details.h
time_stretch.h
)
2016-04-27 11:57:29 +02:00
if(SDL2_FOUND)
set(SRCS ${SRCS} sdl2_sink.cpp)
set(HEADERS ${HEADERS} sdl2_sink.h)
endif()
create_directory_groups(${SRCS} ${HEADERS})
2016-04-24 15:18:30 +02:00
add_library(audio_core STATIC ${SRCS} ${HEADERS})
target_link_libraries(audio_core PUBLIC common core)
target_link_libraries(audio_core PRIVATE SoundTouch)
2016-04-27 11:57:29 +02:00
if(SDL2_FOUND)
target_link_libraries(audio_core PRIVATE SDL2)
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
2016-04-27 11:57:29 +02:00
endif()