summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-07-11 09:52:37 -0400
committerTom Rondeau <tom@trondeau.com>2014-07-11 09:52:37 -0400
commit45f12cf0031cdf594dff8a9bfc7db395cd39ca37 (patch)
treec9b647bc51a034bfabaa93e3a0261f8a275414f9 /gr-uhd
parentb4ddba76f8be72aa08be6fb16be5ca0d1d2148bd (diff)
build: missed gnuradio-uhd in static libs build.
Diffstat (limited to 'gr-uhd')
-rw-r--r--gr-uhd/lib/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-uhd/lib/CMakeLists.txt b/gr-uhd/lib/CMakeLists.txt
index 9121dd41b8..f926b81332 100644
--- a/gr-uhd/lib/CMakeLists.txt
+++ b/gr-uhd/lib/CMakeLists.txt
@@ -76,3 +76,16 @@ list(APPEND uhd_libs
add_library(gnuradio-uhd SHARED ${gr_uhd_sources})
target_link_libraries(gnuradio-uhd ${uhd_libs})
GR_LIBRARY_FOO(gnuradio-uhd RUNTIME_COMPONENT "uhd_runtime" DEVEL_COMPONENT "uhd_devel")
+
+if(ENABLE_STATIC_LIBS)
+ add_library(gnuradio-uhd_static STATIC ${uhd_sources})
+
+ if(NOT WIN32)
+ set_target_properties(gnuradio-uhd_static
+ PROPERTIES OUTPUT_NAME gnuradio-uhd)
+ endif(NOT WIN32)
+
+ install(TARGETS gnuradio-uhd_static
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT "uhd_devel" # .lib file
+ )
+endif(ENABLE_STATIC_LIBS) \ No newline at end of file