2017-07-18 22:25:37 +00:00
|
|
|
add_executable(SampleApp
|
|
|
|
main.cpp
|
|
|
|
PortAudioMicrophoneWrapper.cpp
|
|
|
|
InteractionManager.cpp
|
|
|
|
UserInputManager.cpp
|
|
|
|
ConsolePrinter.cpp
|
2017-10-30 22:14:38 +00:00
|
|
|
GuiRenderer.cpp
|
2017-07-18 22:25:37 +00:00
|
|
|
UIManager.cpp
|
|
|
|
KeywordObserver.cpp
|
2017-08-17 00:13:40 +00:00
|
|
|
ConnectionObserver.cpp
|
|
|
|
SampleApplication.cpp)
|
2017-07-18 22:25:37 +00:00
|
|
|
|
|
|
|
target_include_directories(SampleApp PUBLIC
|
|
|
|
"${SampleApp_SOURCE_DIR}/include"
|
|
|
|
"${MediaPlayer_SOURCE_DIR}/include"
|
|
|
|
"${DefaultClient_SOURCE_DIR}/include"
|
2017-12-09 00:07:37 +00:00
|
|
|
"${AudioResources_SOURCE_DIR}/include"
|
2017-07-18 22:25:37 +00:00
|
|
|
"${PORTAUDIO_INCLUDE_DIR}")
|
|
|
|
|
|
|
|
target_link_libraries(SampleApp
|
|
|
|
DefaultClient
|
|
|
|
AuthDelegate
|
|
|
|
MediaPlayer
|
|
|
|
"${PORTAUDIO_LIB_PATH}")
|
|
|
|
|
|
|
|
if(KITTAI_KEY_WORD_DETECTOR)
|
|
|
|
target_link_libraries(SampleApp
|
|
|
|
KITTAI)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(SENSORY_KEY_WORD_DETECTOR)
|
|
|
|
target_link_libraries(SampleApp SENSORY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
target_link_libraries(SampleApp
|
|
|
|
"-framework CoreAudio"
|
|
|
|
"-framework AudioToolbox"
|
|
|
|
"-framework AudioUnit"
|
|
|
|
"-framework CoreServices"
|
|
|
|
"-framework Carbon")
|
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
target_link_libraries(SampleApp
|
|
|
|
rt m pthread asound)
|
|
|
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
|
|
|
message(FATAL_ERROR "Windows is unsupported at the moment")
|
2017-08-17 00:13:40 +00:00
|
|
|
endif()
|