CMakeLists.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. delay_line.cpp
  19. delay_line.h
  20. effect_context.cpp
  21. effect_context.h
  22. info_updater.cpp
  23. info_updater.h
  24. memory_pool.cpp
  25. memory_pool.h
  26. mix_context.cpp
  27. mix_context.h
  28. null_sink.h
  29. sink.h
  30. sink_context.cpp
  31. sink_context.h
  32. sink_details.cpp
  33. sink_details.h
  34. sink_stream.h
  35. splitter_context.cpp
  36. splitter_context.h
  37. stream.cpp
  38. stream.h
  39. time_stretch.cpp
  40. time_stretch.h
  41. voice_context.cpp
  42. voice_context.h
  43. $<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h>
  44. )
  45. create_target_directory_groups(audio_core)
  46. if (NOT MSVC)
  47. target_compile_options(audio_core PRIVATE
  48. -Werror=conversion
  49. -Werror=ignored-qualifiers
  50. -Werror=implicit-fallthrough
  51. -Werror=reorder
  52. -Werror=sign-compare
  53. -Werror=shadow
  54. -Werror=unused-parameter
  55. -Werror=unused-variable
  56. $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-parameter>
  57. $<$<CXX_COMPILER_ID:GNU>:-Werror=unused-but-set-variable>
  58. -Wno-sign-conversion
  59. )
  60. endif()
  61. target_link_libraries(audio_core PUBLIC common core)
  62. target_link_libraries(audio_core PRIVATE SoundTouch)
  63. if(ENABLE_CUBEB)
  64. target_link_libraries(audio_core PRIVATE cubeb)
  65. target_compile_definitions(audio_core PRIVATE -DHAVE_CUBEB=1)
  66. endif()