diff options
Diffstat (limited to 'gr-vocoder/lib')
-rw-r--r-- | gr-vocoder/lib/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-vocoder/lib/CMakeLists.txt b/gr-vocoder/lib/CMakeLists.txt index e11b143c51..61c973b699 100644 --- a/gr-vocoder/lib/CMakeLists.txt +++ b/gr-vocoder/lib/CMakeLists.txt @@ -161,3 +161,16 @@ endif(GR_USE_SYSTEM_LIBGSM) add_library(gnuradio-vocoder SHARED ${gr_vocoder_sources}) target_link_libraries(gnuradio-vocoder ${vocoder_libs}) GR_LIBRARY_FOO(gnuradio-vocoder RUNTIME_COMPONENT "vocoder_runtime" DEVEL_COMPONENT "vocoder_devel") + +if(ENABLE_STATIC_LIBS) + add_library(gnuradio-vocoder_static STATIC ${gr_vocoder_sources}) + + if(NOT WIN32) + set_target_properties(gnuradio-vocoder_static + PROPERTIES OUTPUT_NAME gnuradio-vocoder) + endif(NOT WIN32) + + install(TARGETS gnuradio-vocoder_static + ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT "vocoder_devel" # .lib file + ) +endif(ENABLE_STATIC_LIBS) |