summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/pmt/CMakeLists.txt
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2013-04-12 12:05:10 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2013-04-12 12:05:10 -0700
commitc018b14e025a52b96da2870e42896db04427e4c9 (patch)
treec36582ac9bee463e00d69d539220982b0de1ba37 /gnuradio-runtime/lib/pmt/CMakeLists.txt
parent807b1c95431ab9c6cff7aeb6a794162c89b2a627 (diff)
parent464c98f856b39b2006ec5ef769348065f0fc82b9 (diff)
Merge remote-tracking branch 'ncorgan/pmt_rc' into next
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 146a65016c..e7bb4de91d 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})