Explorar el Código

complete for Linux, full PA install

richarddobson hace 2 años
padre
commit
aa057312e5
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      dev/externals/paprogs/listaudevs/CMakeLists.txt

+ 4 - 2
dev/externals/paprogs/listaudevs/CMakeLists.txt

@@ -18,12 +18,14 @@ else()
 #    NB winmm must appear after any module that references it. Yes, that's weird.
 #    NB winmm must appear after any module that references it. Yes, that's weird.
     set(EXTRA_LIBRARIES1 dsound winspool ${PA} winmm ${EXTRA_LIBRARIES})
     set(EXTRA_LIBRARIES1 dsound winspool ${PA} winmm ${EXTRA_LIBRARIES})
   else()
   else()
+link_directories (/usr/local/lib)
+    find_library(PA NAMES libportaudio.a)
     set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
     set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
-    set(EXTRA_LIBRARIES1 jack asound pthread ${EXTRA_LIBRARIES})
+    set(EXTRA_LIBRARIES1 jack asound pthread ${PA} ${EXTRA_LIBRARIES})
   endif()
   endif()
 endif()
 endif()
 
 
-link_directories(../../include)
+link_directories(../../lib)
 
 
 include_directories(../../../include ../include ../portaudio/include ../portaudio/src/common )
 include_directories(../../../include ../include ../portaudio/include ../portaudio/src/common )
 if(MINGW)
 if(MINGW)