mirror of https://github.com/drowe67/LPCNet.git
shared library support working
parent
4621fb771f
commit
cf2a99146a
|
|
@ -18,7 +18,7 @@ set(lpcnet_freedv_srcs
|
|||
${lpcnet_SOURCE_DIR}/nnet_data.c
|
||||
)
|
||||
|
||||
add_library(lpcnetfreedv ${lpcnet_freedv_srcs})
|
||||
add_library(lpcnetfreedv SHARED ${lpcnet_freedv_srcs})
|
||||
install(TARGETS lpcnetfreedv EXPORT lpcnet-config
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
|
|
@ -35,13 +35,13 @@ add_executable(dump_data dump_data.c)
|
|||
target_link_libraries(dump_data lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(test_lpcnet test_lpcnet.c)
|
||||
target_link_libraries(test_lpcnet lpcnetfreedv m)
|
||||
target_link_libraries(test_lpcnet lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(test_vec test_vec.c)
|
||||
target_link_libraries(test_vec m)
|
||||
|
||||
add_executable(quant_feat quant_feat.c)
|
||||
target_link_libraries(quant_feat lpcnetfreedv m)
|
||||
target_link_libraries(quant_feat lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(tcodec2_pitch tcodec2_pitch.c codec2_pitch.c)
|
||||
target_link_libraries(tcodec2_pitch m codec2)
|
||||
|
|
@ -53,7 +53,7 @@ add_executable(tdump tdump.c)
|
|||
target_link_libraries(tdump lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(quant_test quant_test.c)
|
||||
target_link_libraries(quant_test lpcnetfreedv m)
|
||||
target_link_libraries(quant_test lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(quant2c quant2c.c)
|
||||
target_link_libraries(quant2c m)
|
||||
|
|
@ -62,10 +62,10 @@ add_executable(diff32 diff32.c)
|
|||
target_link_libraries(diff32 m)
|
||||
|
||||
add_executable(quant_enc quant_enc.c)
|
||||
target_link_libraries(quant_enc lpcnetfreedv m)
|
||||
target_link_libraries(quant_enc lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(quant_dec quant_dec.c)
|
||||
target_link_libraries(quant_dec lpcnetfreedv m)
|
||||
target_link_libraries(quant_dec lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(lpcnet_enc lpcnet_enc.c)
|
||||
target_link_libraries(lpcnet_enc lpcnetfreedv m codec2)
|
||||
|
|
@ -74,4 +74,4 @@ add_executable(lpcnet_dec lpcnet_dec.c)
|
|||
target_link_libraries(lpcnet_dec lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(idct idct.c)
|
||||
target_link_libraries(idct lpcnetfreedv m)
|
||||
target_link_libraries(idct lpcnetfreedv m codec2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue