mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 18:52:33 +02:00
Fix SpeechRecognizer in CMakeLists
This commit is contained in:
parent
a2e7c9b75c
commit
bf9e887cee
1 changed files with 5 additions and 4 deletions
|
@ -52,12 +52,13 @@ foreach(SUBDIR avatar devices renderer ui starfield location scripting voxels pa
|
|||
set(INTERFACE_SRCS ${INTERFACE_SRCS} "${SUBDIR_SRCS}")
|
||||
endforeach(SUBDIR)
|
||||
|
||||
# grab .mm files for OSX
|
||||
if (APPLE)
|
||||
file(GLOB INTERFACE_OBJCPP_SRCS src/SpeechRecognizer.mm)
|
||||
# Add SpeechRecognizer if on OS X, otherwise remove
|
||||
if (APPLE)
|
||||
file(GLOB INTERFACE_OBJCPP_SRCS "src/SpeechRecognizer.mm")
|
||||
set(INTERFACE_SRCS ${INTERFACE_SRCS} ${INTERFACE_OBJCPP_SRCS})
|
||||
else ()
|
||||
list(REMOVE_ITEM "src/SpeechRecognizer.h")
|
||||
get_filename_component(SPEECHRECOGNIZER_H "src/SpeechRecognizer.h" ABSOLUTE)
|
||||
list(REMOVE_ITEM INTERFACE_SRCS ${SPEECHRECOGNIZER_H})
|
||||
endif ()
|
||||
|
||||
find_package(Qt5 COMPONENTS Core Gui Multimedia Network OpenGL Script Svg WebKit WebKitWidgets Xml UiTools)
|
||||
|
|
Loading…
Reference in a new issue