aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/WiresharkPlugin.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/WiresharkPlugin.cmake b/cmake/modules/WiresharkPlugin.cmake
index 5e652ce558..0d8e5c2c27 100644
--- a/cmake/modules/WiresharkPlugin.cmake
+++ b/cmake/modules/WiresharkPlugin.cmake
@@ -24,6 +24,9 @@ macro(SET_MODULE_INFO _plugin _ver_major _ver_minor _ver_micro _ver_extra)
configure_file(${_plugin_rc_in} plugin.rc @ONLY)
set(HAVE_PLUGIN_RC TRUE)
endif()
+
+ set(PLUGIN_VERSION "${_ver_major}.${_ver_minor}.${_ver_micro}")
+ add_definitions(-DPLUGIN_VERSION=\"${PLUGIN_VERSION}\")
endmacro()
macro(ADD_PLUGIN_LIBRARY _plugin _subfolder)