# # Setup the Comms compiler options. # # To build with Comms support, include the following option on the cmake command line. # cmake # -DCOMMS=ON # -DCOMMS_LIB_PATH= # -DCOMMS_INCLUDE_DIR= # option(COMMS "Enable Alexa Comms (Calling)." OFF) option(COMMS_AUDIO_PROXY "Enable Alexa Comms (Calling) using audio proxy." OFF) if(COMMS) if(NOT COMMS_LIB_PATH) message(FATAL_ERROR "Must pass library path of AlexaCommsLib to enable Comms.") endif() if(NOT COMMS_INCLUDE_DIR) message(FATAL_ERROR "Must pass include dir path of AlexaCommsLib to enable Comms.") endif() message("Creating ${PROJECT_NAME} with Alexa Comms (Calling)") add_definitions(-DENABLE_COMMS) if (COMMS_AUDIO_PROXY) message("Creating ${PROJECT_NAME} with Alexa Comms (Calling) using audio proxy") add_definitions(-DENABLE_COMMS_AUDIO_PROXY) endif() endif()