add opus options to cmakefiles

This commit is contained in:
badaix 2019-11-02 16:19:59 +01:00
parent 258bab4f65
commit 2a47e0b672
3 changed files with 20 additions and 0 deletions

View file

@ -59,6 +59,12 @@ if (FLAC_FOUND)
list(APPEND SERVER_INCLUDE ${FLAC_INCLUDE_DIRS})
endif (FLAC_FOUND)
if (OPUS_FOUND)
list(APPEND SERVER_SOURCES encoder/opus_encoder.cpp)
list(APPEND SERVER_LIBRARIES ${OPUS_LIBRARIES})
list(APPEND SERVER_INCLUDE ${OPUS_INCLUDE_DIRS})
endif (OPUS_FOUND)
#list(APPEND SERVER_LIBRARIES Boost::boost)
include_directories(${SERVER_INCLUDE})