summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--configure.ac5
-rw-r--r--rfb/rfbconfig.h.cmake4
3 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be519f3..aaa6029 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,9 @@ include(CheckCSourceRuns)
set(PACKAGE_NAME "LibVNCServer")
set(FULL_PACKAGE_NAME "LibVNCServer")
set(PACKAGE_VERSION "0.9.10")
+set(VERSION_MAJOR "0")
+set(VERSION_MINOR "9")
+set(VERSION_PATCHLEVEL "10")
set(PROJECT_BUGREPORT_PATH "http://sourceforge.net/projects/libvncserver")
set(CMAKE_C_FLAGS "-O2 -W -Wall -g")
set(LIBVNCSERVER_DIR ${CMAKE_SOURCE_DIR}/libvncserver)
diff --git a/configure.ac b/configure.ac
index 7b62499..4873253 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,6 +5,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_CONFIG_HEADER(rfbconfig.h)
AX_PREFIX_CONFIG_H([rfb/rfbconfig.h])
+# set detailed version info
+AC_DEFINE(VERSION_MAJOR, 0, LibVNCServer major version)
+AC_DEFINE(VERSION_MINOR, 9, LibVNCServer minor version)
+AC_DEFINE(VERSION_PATCHLEVEL, 10, LibVNCServer patchlevel)
+
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
diff --git a/rfb/rfbconfig.h.cmake b/rfb/rfbconfig.h.cmake
index b095948..2ee5e52 100644
--- a/rfb/rfbconfig.h.cmake
+++ b/rfb/rfbconfig.h.cmake
@@ -56,6 +56,10 @@
/* Define to the version of this package. */
#define LIBVNCSERVER_PACKAGE_VERSION "@PACKAGE_VERSION@"
+#define LIBVNCSERVER_VERSION "@PACKAGE_VERSION@"
+#define LIBVNCSERVER_VERSION_MAJOR "@VERSION_MAJOR@"
+#define LIBVNCSERVER_VERSION_MINOR "@VERSION_MINOR@"
+#define LIBVNCSERVER_VERSION_PATCHLEVEL "@VERSION_PATCHLEVEL@"
/* Define to 1 if libgcrypt is present */
#cmakedefine LIBVNCSERVER_WITH_CLIENT_GCRYPT 1