diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index db5aa64210..97eb5e1a4d 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -46,13 +46,19 @@ foreach(SUBDIR avatar devices renderer ui starfield location scripting voxels pa set(INTERFACE_SRCS ${INTERFACE_SRCS} "${SUBDIR_SRCS}") endforeach(SUBDIR) -# Add SpeechRecognizer if on OS X, otherwise remove -if (APPLE) +# Add SpeechRecognizer if on Windows or OS X, otherwise remove +if (WIN32) + # Use .cpp and .h files as is. +elseif (APPLE) file(GLOB INTERFACE_OBJCPP_SRCS "src/SpeechRecognizer.mm") set(INTERFACE_SRCS ${INTERFACE_SRCS} ${INTERFACE_OBJCPP_SRCS}) + get_filename_component(SPEECHRECOGNIZER_CPP "src/SpeechRecognizer.cpp" ABSOLUTE) + list(REMOVE_ITEM INTERFACE_SRCS ${SPEECHRECOGNIZER_CPP}) else () get_filename_component(SPEECHRECOGNIZER_H "src/SpeechRecognizer.h" ABSOLUTE) list(REMOVE_ITEM INTERFACE_SRCS ${SPEECHRECOGNIZER_H}) + get_filename_component(SPEECHRECOGNIZER_CPP "src/SpeechRecognizer.cpp" ABSOLUTE) + list(REMOVE_ITEM INTERFACE_SRCS ${SPEECHRECOGNIZER_CPP}) endif () find_package(Qt5 COMPONENTS Gui Multimedia Network OpenGL Script Svg WebKitWidgets) diff --git a/interface/src/SpeechRecognizer.cpp b/interface/src/SpeechRecognizer.cpp new file mode 100644 index 0000000000..39309e8488 --- /dev/null +++ b/interface/src/SpeechRecognizer.cpp @@ -0,0 +1,11 @@ +// +// SpeechRecognizer.cpp +// interface/src +// +// Created by David Rowe on 10/20/2014. +// Copyright 2014 High Fidelity, Inc. +// +// Distributed under the Apache License, Version 2.0. +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html +// +