summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/pmt/CMakeLists.txt
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-04-12 10:40:18 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2013-04-12 10:40:18 -0700
commit464c98f856b39b2006ec5ef769348065f0fc82b9 (patch)
treee3c434de216cf0017e086fd3c498dcb4fbf67864 /gnuradio-runtime/lib/pmt/CMakeLists.txt
parent4d28885465d10b1439b41caf0ac1435f68e1f5a0 (diff)
pmt: added DLL resource file for MSVC
Diffstat (limited to 'gnuradio-runtime/lib/pmt/CMakeLists.txt')
-rw-r--r--gnuradio-runtime/lib/pmt/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/pmt/CMakeLists.txt b/gnuradio-runtime/lib/pmt/CMakeLists.txt
index 30a62ead7f..df07db45cb 100644
--- a/gnuradio-runtime/lib/pmt/CMakeLists.txt
+++ b/gnuradio-runtime/lib/pmt/CMakeLists.txt
@@ -85,6 +85,21 @@ list(APPEND gnuradio_pmt_libs
${LOG4CPP_LIBRARIES}
)
+#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-pmt.rc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-pmt.rc
+ @ONLY)
+
+ list(APPEND gr_pmt_sources
+ ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-pmt.rc
+ )
+endif(MSVC)
+
+
add_library(gnuradio-pmt SHARED ${pmt_sources})
target_link_libraries(gnuradio-pmt ${gnuradio_pmt_libs})