瀏覽代碼

add AAIOLIB to linux rules

richarddobson 2 年之前
父節點
當前提交
c691a13307
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      dev/externals/paprogs/paplay/CMakeLists.txt

+ 3 - 1
dev/externals/paprogs/paplay/CMakeLists.txt

@@ -20,9 +20,11 @@ else()
     set(EXTRA_LIBRARIES1 winmm dsound winspool portsf ${EXTRA_LIBRARIES})
   else()
     link_directories (/usr/local/lib)
+    link_directories (../portaudio/lib/.libs)
+    find_library(PA NAMES libportaudio.a)
     find_library(AAIOLIB NAMES libaaio.a)
     set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
-    set(EXTRA_LIBRARIES1 jack asound portsf pthread ${AAIOLIB} ${EXTRA_LIBRARIES})
+    set(EXTRA_LIBRARIES1 jack asound portsf portaudio pthread ${AAIOLIB} ${EXTRA_LIBRARIES})
   endif()
 endif()