shithub: opus

Download patch

ref: ddb2c97242f80e9e468001d174025d6f76d01d10
parent: d637b9022af1f58cfe664e0332dc4b6dd38789a9
author: willson-chen <willson.chenwx@gmail.com>
date: Thu Dec 19 11:59:32 EST 2019

cmake - add math library for test programs demo and compare when building dynamic library

Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -381,12 +381,12 @@
   target_include_directories(opus_demo PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
   target_include_directories(opus_demo PRIVATE silk) # debug.h
   target_include_directories(opus_demo PRIVATE celt) # arch.h
-  target_link_libraries(opus_demo PRIVATE opus)
+  target_link_libraries(opus_demo PRIVATE opus ${OPUS_REQUIRED_LIBRARIES})
 
   # compare
   add_executable(opus_compare ${opus_compare_sources})
   target_include_directories(opus_compare PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
-  target_link_libraries(opus_compare PRIVATE opus)
+  target_link_libraries(opus_compare PRIVATE opus ${OPUS_REQUIRED_LIBRARIES})
 endif()
 
 if(BUILD_TESTING)