diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-02-28 15:57:35 -0800 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-02-28 15:59:55 -0800 |
commit | 4a320f31432f8f7c50456a20c4de0ca9b0dde017 (patch) | |
tree | c222ecf0bc314ed45ef6ad4240719083b3aabc33 /host/lib/CMakeLists.txt | |
parent | 91cfa4f67f5df23e6de41330dcb0782cd6a2ff68 (diff) | |
download | uhd-4a320f31432f8f7c50456a20c4de0ca9b0dde017.tar.gz uhd-4a320f31432f8f7c50456a20c4de0ca9b0dde017.tar.bz2 uhd-4a320f31432f8f7c50456a20c4de0ca9b0dde017.zip |
Added Windows DLL resource file to insert version into DLL
Diffstat (limited to 'host/lib/CMakeLists.txt')
-rw-r--r-- | host/lib/CMakeLists.txt | 12 |
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}) |