diff --git a/CMakeLists.txt b/CMakeLists.txt index a7ea78d17..53e5c46c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,6 +184,9 @@ install( add_library(sof_ld_flags INTERFACE) add_library(sof_ld_scripts INTERFACE) +target_include_directories(sof_public_headers INTERFACE ${PROJECT_SOURCE_DIR}/third_party_include) +link_directories(${PROJECT_SOURCE_DIR}/third_party_libraries) + # declare target with no sources to let cmake know about it add_executable(sof "") target_link_libraries(sof PRIVATE sof_options) diff --git a/src/audio/CMakeLists.txt b/src/audio/CMakeLists.txt index 1310ca18f..5b3fd2611 100644 --- a/src/audio/CMakeLists.txt +++ b/src/audio/CMakeLists.txt @@ -66,6 +66,9 @@ if(NOT CONFIG_LIBRARY) add_local_sources(sof google_hotword_detect.c ) + target_link_libraries(sof PRIVATE libhifi3_google_hotword_dsp_api.a) + target_link_libraries(sof PRIVATE c) + target_link_libraries(sof PRIVATE m) endif() if(CONFIG_COMP_SEL) add_subdirectory(selector)