加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
hzq_scsx 提交于 2024-03-19 18:39 . 唤醒录音
cmake_minimum_required(VERSION 3.0.0)
project(smartspeaker VERSION 0.1.0 LANGUAGES C CXX)
include(CTest)
enable_testing()
add_executable(smartspeaker main.cpp)
add_executable(weekday weekday.c)
add_executable(blink blink.c)
add_executable(key key.c)
target_link_libraries(key gpiod asound)
add_compile_options(-g -Wall)
add_executable(button button.c)
target_link_libraries(button gpiod)
add_executable(record record.c)
target_link_libraries(record asound)
add_executable(play play.c)
target_link_libraries(play asound)
add_executable(shici shici.c)
target_link_libraries(shici curl cjson)
add_executable(asr asr.c auth.c)
target_link_libraries(asr curl cjson)
target_compile_options(asr PRIVATE -D_GNU_SOURCE)
add_executable(chat chat.c auth.c)
target_link_libraries(chat curl cjson)
target_compile_options(chat PRIVATE -D_GNU_SOURCE)
add_executable(nlp nlp_llm.c)
target_link_libraries(nlp curl cjson)
target_compile_options(nlp PRIVATE -D_GNU_SOURCE)
add_executable(tts tts.c auth.c)
target_link_libraries(tts curl cjson)
target_compile_options(tts PRIVATE -D_GNU_SOURCE)
add_subdirectory(snowboy)
add_executable(sbtest sbtest.c)
target_link_libraries(sbtest snowboy-wrapper snowboy-detect cblas asound)
add_executable(yuyin yuyin.c auth.c)
target_link_libraries(yuyin snowboy-wrapper snowboy-detect cblas asound curl cjson)
target_compile_options(yuyin PRIVATE -D_GNU_SOURCE)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化