mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:08:51 +02:00
Add all Objective-C sources in CMakeLists.txt
This commit is contained in:
parent
ae62b96f67
commit
3f686be7ab
1 changed files with 6 additions and 2 deletions
|
@ -70,12 +70,16 @@ file(GLOB_RECURSE INTERFACE_SRCS "src/*.cpp" "src/*.h")
|
||||||
GroupSources("src")
|
GroupSources("src")
|
||||||
list(APPEND INTERFACE_SRCS ${RESOURCES_RCC})
|
list(APPEND INTERFACE_SRCS ${RESOURCES_RCC})
|
||||||
|
|
||||||
|
# grab the Objective-C sources on OS X
|
||||||
|
if (APPLE)
|
||||||
|
file(GLOB_RECURSE INTERFACE_OBJCPP_SRCS "src/*.m" "src/*.mm")
|
||||||
|
list(APPEND INTERFACE_SRCS ${INTERFACE_OBJCPP_SRCS})
|
||||||
|
endif ()
|
||||||
|
|
||||||
# Add SpeechRecognizer if on Windows or OS X, otherwise remove
|
# Add SpeechRecognizer if on Windows or OS X, otherwise remove
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# Use .cpp and .h files as is.
|
# Use .cpp and .h files as is.
|
||||||
elseif (APPLE)
|
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)
|
get_filename_component(SPEECHRECOGNIZER_CPP "src/SpeechRecognizer.cpp" ABSOLUTE)
|
||||||
list(REMOVE_ITEM INTERFACE_SRCS ${SPEECHRECOGNIZER_CPP})
|
list(REMOVE_ITEM INTERFACE_SRCS ${SPEECHRECOGNIZER_CPP})
|
||||||
else ()
|
else ()
|
||||||
|
|
Loading…
Reference in a new issue