From 4a320f31432f8f7c50456a20c4de0ca9b0dde017 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Thu, 28 Feb 2013 15:57:35 -0800 Subject: Added Windows DLL resource file to insert version into DLL --- host/lib/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'host/lib/CMakeLists.txt') 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 @@ -93,6 +93,18 @@ LIBUHD_APPEND_SOURCES( ${CMAKE_CURRENT_BINARY_DIR}/version.cpp ) +######################################################################## +# 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 ######################################################################## -- cgit v1.2.3