aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-02-28 16:00:08 -0800
committerNicholas Corgan <nick.corgan@ettus.com>2013-02-28 16:00:08 -0800
commit58da716bf740704769b38bc97b976dc9635aab4f (patch)
tree520fdd63c9b33eec3322242e3d7dc961286828b6 /host/lib/CMakeLists.txt
parent7868ba1cc40bc174addd0a9dec6c715f13a3d99b (diff)
parent4a320f31432f8f7c50456a20c4de0ca9b0dde017 (diff)
downloaduhd-58da716bf740704769b38bc97b976dc9635aab4f.tar.gz
uhd-58da716bf740704769b38bc97b976dc9635aab4f.tar.bz2
uhd-58da716bf740704769b38bc97b976dc9635aab4f.zip
Merge branch 'maint34' into maint
Diffstat (limited to 'host/lib/CMakeLists.txt')
-rw-r--r--host/lib/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt
index 7a76ebd53..d8ff66a96 100644
--- a/host/lib/CMakeLists.txt
+++ b/host/lib/CMakeLists.txt
@@ -94,6 +94,18 @@ LIBUHD_APPEND_SOURCES(
)
########################################################################
+# Add DLL resource file to Windows build
+########################################################################
+IF(MSVC)
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/uhd.rc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/uhd.rc
+ @ONLY)
+
+ LIST(APPEND libuhd_sources ${CMAKE_CURRENT_BINARY_DIR}/uhd.rc)
+ENDIF(MSVC)
+
+########################################################################
# Setup libuhd library
########################################################################
ADD_LIBRARY(uhd SHARED ${libuhd_sources})