add some code
This commit is contained in:
31
managed_components/espressif__esp-sr/esp-tts/CMakeLists.txt
Normal file
31
managed_components/espressif__esp-sr/esp-tts/CMakeLists.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
set(COMPONENT_ADD_INCLUDEDIRS
|
||||
./esp_tts_chinese/include
|
||||
)
|
||||
|
||||
register_component()
|
||||
|
||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp_tts_chinese")
|
||||
|
||||
if(IDF_TARGET STREQUAL "esp32")
|
||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE
|
||||
esp_tts_chinese
|
||||
voice_set_xiaole
|
||||
voice_set_template
|
||||
)
|
||||
endif()
|
||||
|
||||
if(IDF_TARGET STREQUAL "esp32s2")
|
||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE
|
||||
esp_tts_chinese_esp32s2
|
||||
voice_set_xiaole_esp32s2
|
||||
voice_set_template_esp32s2
|
||||
)
|
||||
endif()
|
||||
|
||||
if(IDF_TARGET STREQUAL "esp32s3")
|
||||
target_link_libraries(${COMPONENT_TARGET} INTERFACE
|
||||
esp_tts_chinese_esp32s3
|
||||
voice_set_xiaole_esp32s3
|
||||
)
|
||||
endif()
|
||||
Reference in New Issue
Block a user