diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-06-27 15:10:31 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-06-28 13:58:57 -0400 |
commit | 0099eb9bd7a11afdf9276d6f4a5dafa757ebdb7c (patch) | |
tree | b278b8598719ce8a1284b1707c49d4e39c1a639c /gr-fft | |
parent | 3d8a19b55a15a285d5a95d1e786cb93e26cb4f3a (diff) |
build: adds an ENABLE_STATIC_LIB option to cmake to build static (.a) versions of the libraries.
Diffstat (limited to 'gr-fft')
-rw-r--r-- | gr-fft/lib/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-fft/lib/CMakeLists.txt b/gr-fft/lib/CMakeLists.txt index 045df5b4f8..51fecbe677 100644 --- a/gr-fft/lib/CMakeLists.txt +++ b/gr-fft/lib/CMakeLists.txt @@ -83,3 +83,16 @@ endif() add_library(gnuradio-fft SHARED ${fft_sources}) target_link_libraries(gnuradio-fft ${fft_libs}) GR_LIBRARY_FOO(gnuradio-fft RUNTIME_COMPONENT "fft_runtime" DEVEL_COMPONENT "fft_devel") + +if(ENABLE_STATIC_LIBS) + add_library(gnuradio-fft_static STATIC ${fft_sources}) + + if(NOT WIN32) + set_target_properties(gnuradio-fft_static + PROPERTIES OUTPUT_NAME gnuradio-fft) + endif(NOT WIN32) + + install(TARGETS gnuradio-fft_static + ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT "fft_devel" # .lib file + ) +endif(ENABLE_STATIC_LIBS) |