summaryrefslogtreecommitdiff
path: root/gr-wxgui/lib/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'gr-wxgui/lib/CMakeLists.txt')
-rw-r--r--gr-wxgui/lib/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-wxgui/lib/CMakeLists.txt b/gr-wxgui/lib/CMakeLists.txt
index c33a7b9a33..02b2e94dce 100644
--- a/gr-wxgui/lib/CMakeLists.txt
+++ b/gr-wxgui/lib/CMakeLists.txt
@@ -75,3 +75,16 @@ target_link_libraries(gnuradio-wxgui ${wxgui_libs})
GR_LIBRARY_FOO(gnuradio-wxgui
RUNTIME_COMPONENT "wxgui_runtime"
DEVEL_COMPONENT "wxgui_devel")
+
+if(ENABLE_STATIC_LIBS)
+ add_library(gnuradio-wxgui_static STATIC ${gr_wxgui_sources})
+
+ if(NOT WIN32)
+ set_target_properties(gnuradio-wxgui_static
+ PROPERTIES OUTPUT_NAME gnuradio-wxgui)
+ endif(NOT WIN32)
+
+ install(TARGETS gnuradio-wxgui_static
+ ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT "wxgui_devel" # .lib file
+ )
+endif(ENABLE_STATIC_LIBS)