diff options
Diffstat (limited to 'gnuradio-runtime/lib/pmt/CMakeLists.txt')
-rw-r--r-- | gnuradio-runtime/lib/pmt/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/pmt/CMakeLists.txt b/gnuradio-runtime/lib/pmt/CMakeLists.txt index dc4fe1be46..32c0e57a6a 100644 --- a/gnuradio-runtime/lib/pmt/CMakeLists.txt +++ b/gnuradio-runtime/lib/pmt/CMakeLists.txt @@ -114,6 +114,21 @@ add_dependencies(gnuradio-pmt pmt_generated ) +if(ENABLE_STATIC_LIBS) + add_library(gnuradio-pmt_static STATIC ${pmt_sources}) + + add_dependencies(gnuradio-pmt_static pmt_generated) + + if(NOT WIN32) + set_target_properties(gnuradio-pmt_static + PROPERTIES OUTPUT_NAME gnuradio-pmt) + endif(NOT WIN32) + + install(TARGETS gnuradio-pmt_static + ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT "runtime_devel" # .lib file + ) +endif(ENABLE_STATIC_LIBS) + ######################################################################## # Setup tests ######################################################################## |