Add missing BuildCodec2.cmake
authorhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 7 May 2013 14:07:47 +0000 (14:07 +0000)
committerhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 7 May 2013 14:07:47 +0000 (14:07 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1242 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/cmake/BuildCodec2.cmake [new file with mode: 0644]

diff --git a/fdmdv2/cmake/BuildCodec2.cmake b/fdmdv2/cmake/BuildCodec2.cmake
new file mode 100644 (file)
index 0000000..6f13bb0
--- /dev/null
@@ -0,0 +1,11 @@
+include(ExternalProject)
+ExternalProject_Add(codec2
+   SVN_REPOSITORY https://freetel.svn.sourceforge.net/svnroot/freetel/codec2-dev
+   CMAKE_ARGS -DBUILD_SHARED_LIBS=FALSE 
+   INSTALL_COMMAND ""
+)
+find_library(CODEC2_LIBRARIES codec2
+    PATHS ${CMAKE_BINARY_DIR}/codec2-prefix/src/codec2-build/src)
+include_directories(${CMAKE_BINARY_DIR}/codec2-prefix/src/codec2/src)
+list(APPEND FREEDV_LINK_LIBS ${CODEC2_LIBRARIES})
+list(APPEND FREEDV_STATIC_DEPS codec2)