yuzu/src/audio_core/CMakeLists.txt

45 lines
1.1 KiB
CMake
Raw Normal View History

set(SRCS
audio_core.cpp
codec.cpp
hle/dsp.cpp
hle/filter.cpp
hle/pipe.cpp
2016-04-25 07:54:57 +00:00
hle/source.cpp
2016-04-24 20:11:47 +00:00
interpolate.cpp
2016-04-28 13:28:59 +00:00
sink_details.cpp
time_stretch.cpp
)
set(HEADERS
audio_core.h
codec.h
hle/common.h
hle/dsp.h
hle/filter.h
hle/pipe.h
2016-04-25 07:54:57 +00:00
hle/source.h
2016-04-24 20:11:47 +00:00
interpolate.h
2016-04-27 11:04:15 +00:00
null_sink.h
sink.h
2016-04-28 13:28:59 +00:00
sink_details.h
time_stretch.h
)
2016-04-24 13:18:30 +00:00
include_directories(../../externals/soundtouch/include)
2016-04-27 09:57:29 +00:00
if(SDL2_FOUND)
set(SRCS ${SRCS} sdl2_sink.cpp)
set(HEADERS ${HEADERS} sdl2_sink.h)
include_directories(${SDL2_INCLUDE_DIR})
endif()
create_directory_groups(${SRCS} ${HEADERS})
2016-04-24 13:18:30 +00:00
add_library(audio_core STATIC ${SRCS} ${HEADERS})
target_link_libraries(audio_core SoundTouch)
2016-04-27 09:57:29 +00:00
if(SDL2_FOUND)
target_link_libraries(audio_core ${SDL2_LIBRARY})
set_property(TARGET audio_core APPEND PROPERTY COMPILE_DEFINITIONS HAVE_SDL2)
endif()