diff options
Diffstat (limited to 'gr-uhd/lib/CMakeLists.txt')
-rw-r--r-- | gr-uhd/lib/CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gr-uhd/lib/CMakeLists.txt b/gr-uhd/lib/CMakeLists.txt index d453b0fb27..a6bd4e98b7 100644 --- a/gr-uhd/lib/CMakeLists.txt +++ b/gr-uhd/lib/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2011-2012 Free Software Foundation, Inc. +# Copyright 2011-2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -50,6 +50,20 @@ list(APPEND gr_uhd_sources amsg_source_impl.cc ) +#Add Windows DLL resource file if using MSVC +if(MSVC) + include(${CMAKE_SOURCE_DIR}/cmake/Modules/GrVersion.cmake) + + configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-uhd.rc.in + ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-uhd.rc + @ONLY) + + list(APPEND gr_uhd_sources + ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-uhd.rc + ) +endif(MSVC) + list(APPEND uhd_libs gnuradio-core ${Boost_LIBRARIES} |