diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2013-04-12 12:05:10 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-04-12 12:05:10 -0700 |
commit | c018b14e025a52b96da2870e42896db04427e4c9 (patch) | |
tree | c36582ac9bee463e00d69d539220982b0de1ba37 | |
parent | 807b1c95431ab9c6cff7aeb6a794162c89b2a627 (diff) | |
parent | 464c98f856b39b2006ec5ef769348065f0fc82b9 (diff) |
Merge remote-tracking branch 'ncorgan/pmt_rc' into next
-rw-r--r-- | gnuradio-runtime/lib/pmt/CMakeLists.txt | 15 | ||||
-rw-r--r-- | gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in | 55 |
2 files changed, 70 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}) diff --git a/gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in b/gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in new file mode 100644 index 0000000000..242223ef15 --- /dev/null +++ b/gnuradio-runtime/lib/pmt/gnuradio-pmt.rc.in @@ -0,0 +1,55 @@ +/* -*- c++ -*- */ +/* + * Copyright 2013 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +#include <afxres.h> + +VS_VERSION_INFO VERSIONINFO + FILEVERSION @MAJOR_VERSION@,@API_COMPAT@,@RC_MINOR_VERSION@,@RC_MAINT_VERSION@ + PRODUCTVERSION @MAJOR_VERSION@,@API_COMPAT@,@RC_MINOR_VERSION@,@RC_MAINT_VERSION@ + FILEFLAGSMASK 0x3fL +#ifndef NDEBUG + FILEFLAGS 0x0L +#else + FILEFLAGS 0x1L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE VFT2_DRV_INSTALLABLE + BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "FileDescription", "gnuradio-pmt" + VALUE "FileVersion", "@VERSION@" + VALUE "InternalName", "gnuradio-pmt.dll" + VALUE "LegalCopyright", "Licensed under GPLv3 or any later version" + VALUE "OriginalFilename", "gnuradio-pmt.dll" + VALUE "ProductName", "gnuradio-pmt" + VALUE "ProductVersion", "@VERSION@" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END + END |