1# SPDX-License-Identifier: BSD-3-Clause
2
3if(CONFIG_FORMAT_FLOAT)
4	cmocka_test(pcm_float_generic
5		pcm_float.c
6		${PROJECT_SOURCE_DIR}/src/audio/pcm_converter/pcm_converter.c
7		${PROJECT_SOURCE_DIR}/src/audio/pcm_converter/pcm_converter_generic.c
8		${PROJECT_SOURCE_DIR}/src/audio/buffer.c
9		${PROJECT_SOURCE_DIR}/src/audio/component.c
10		${PROJECT_SOURCE_DIR}/src/audio/data_blob.c
11		${PROJECT_SOURCE_DIR}/src/ipc/ipc3/helper.c
12		${PROJECT_SOURCE_DIR}/test/cmocka/src/notifier_mocks.c
13		${PROJECT_SOURCE_DIR}/src/ipc/ipc-common.c
14		${PROJECT_SOURCE_DIR}/src/ipc/ipc-helper.c
15		${PROJECT_SOURCE_DIR}/src/audio/buffer.c
16		${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-graph.c
17		${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-params.c
18		${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-schedule.c
19		${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-stream.c
20		${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-xrun.c
21	)
22	target_include_directories(pcm_float_generic PRIVATE ${PROJECT_SOURCE_DIR}/src/include)
23	target_compile_definitions(pcm_float_generic PRIVATE PCM_CONVERTER_GENERIC)
24	target_link_libraries(pcm_float_generic PRIVATE sof_options)
25endif()
26