20 lines
1.0 KiB
CMake
20 lines
1.0 KiB
CMake
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
|
|
|
# KWD_ADAPTER_REGISTRATION_FILE is set here to provide backwards compatibility for applications that have
|
|
# not transitioned to fully using the manufactory (e.g. backwards-compatible Sample App, shipped with SDK).
|
|
# Note that the SDK Preview App does not use this, instead using the acsdkKWDComponent.
|
|
set(KWD_ADAPTER_REGISTRATION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/KWDProvider/src/PryonLiteRegistration.cpp" PARENT_SCOPE)
|
|
|
|
set(KWD_COMPONENT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/acsdkKWD/src/KWDComponent.cpp" PARENT_SCOPE)
|
|
|
|
# TARGET_KWD_LIB is set to specify to the AVS SDK which KWD to use.
|
|
set(TARGET_KWD_LIB "AMAZONLITE" PARENT_SCOPE)
|
|
|
|
# Check that the SDK meets the minimum version requirement to be used with this adapter.
|
|
set(SDK_MIN_VER "1.26.0")
|
|
if(PROJECT_VERSION VERSION_LESS SDK_MIN_VER AND (NOT PROJECT_VERSION VERSION_EQUAL "0.0.0"))
|
|
message(FATAL_ERROR "SDK Version does not meet the minimum required version to enable PryonLite KWD")
|
|
endif()
|
|
|
|
add_subdirectory("AmazonLite")
|