CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. add_library(audio_core STATIC
  2. algorithm/filter.cpp
  3. algorithm/filter.h
  4. algorithm/interpolate.cpp
  5. algorithm/interpolate.h
  6. audio_out.cpp
  7. audio_out.h
  8. audio_renderer.cpp
  9. audio_renderer.h
  10. behavior_info.cpp
  11. behavior_info.h
  12. buffer.h
  13. codec.cpp
  14. codec.h
  15. command_generator.cpp
  16. command_generator.h
  17. common.h
  18. effect_context.cpp
  19. effect_context.h
  20. info_updater.cpp
  21. info_updater.h
  22. memory_pool.cpp
  23. memory_pool.h
  24. mix_context.cpp
  25. mix_context.h
  26. null_sink.h
  27. sink.h
  28. sink_context.cpp
  29. sink_context.h
  30. sink_details.cpp
  31. sink_details.h
  32. sink_stream.h
  33. splitter_context.cpp
  34. splitter_context.h
  35. stream.cpp
  36. stream.h
  37. time_stretch.cpp
  38. time_stretch.h
  39. voice_context.cpp
  40. voice_context.h
  41. $<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h>
  42. )
  43. create_target_directory_groups(audio_core)
  44. if (NOT MSVC)
  45. target_compile_options(audio_core PRIVATE
  46. -Werror=conversion
  47. -Werror=ignored-qualifiers
  48. -Werror=implicit-fallthrough
  49. -Werror=reorder
  50. -Werror=sign-compare
  51. -Werror=shadow
  52. -Werror=unused-parameter
  53. -Werror=unused-variable
  54. $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
  55. $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
  56. -Wno-sign-conversion
  57. )
  58. endif()
  59. target_link_libraries(audio_core PUBLIC common core)
  60. target_link_libraries(audio_core PRIVATE SoundTouch)
  61. if(ENABLE_CUBEB)
  62. target_link_libraries(audio_core PRIVATE cubeb)
  63. target_compile_definitions(audio_core PRIVATE -DHAVE_CUBEB=1)
  64. endif()