CMakeLists.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. set(SRCS
  2. audio_core.cpp
  3. codec.cpp
  4. hle/dsp.cpp
  5. hle/filter.cpp
  6. hle/mixers.cpp
  7. hle/pipe.cpp
  8. hle/source.cpp
  9. interpolate.cpp
  10. sink_details.cpp
  11. time_stretch.cpp
  12. )
  13. set(HEADERS
  14. audio_core.h
  15. codec.h
  16. hle/common.h
  17. hle/dsp.h
  18. hle/filter.h
  19. hle/mixers.h
  20. hle/pipe.h
  21. hle/source.h
  22. interpolate.h
  23. null_sink.h
  24. sink.h
  25. sink_details.h
  26. time_stretch.h
  27. )
  28. if(SDL2_FOUND)
  29. set(SRCS ${SRCS} sdl2_sink.cpp)
  30. set(HEADERS ${HEADERS} sdl2_sink.h)
  31. endif()
  32. create_directory_groups(${SRCS} ${HEADERS})
  33. add_library(audio_core STATIC ${SRCS} ${HEADERS})
  34. target_link_libraries(audio_core PUBLIC common core)
  35. target_link_libraries(audio_core PRIVATE SoundTouch)
  36. if(SDL2_FOUND)
  37. target_link_libraries(audio_core PRIVATE SDL2)
  38. target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
  39. endif()