Added API version in addition to ZM version

This commit is contained in:
pliablepixels 2015-06-13 16:30:28 +00:00
parent 03de98980f
commit 11bd2139f4
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@
cmake_minimum_required (VERSION 2.6)
project (zoneminder)
set(zoneminder_VERSION "1.28.1")
# make API version a minor of ZM version
set(zoneminder_API_VERSION "${zoneminder_VERSION}.1")
# CMake does not allow out-of-source build if CMakeCache.exists
# in the source folder. Abort and notify the user
@ -627,6 +629,7 @@ endif(NOT POLKIT_FOUND)
set(ZM_PID "${ZM_RUNDIR}/zm.pid")
set(ZM_CONFIG "${ZM_CONFIG_DIR}/zm.conf")
set(VERSION "${zoneminder_VERSION}")
set(API_VERSION "${zoneminder_API_VERSION}")
set(PKGDATADIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/zoneminder")
set(BINDIR "${CMAKE_INSTALL_FULL_BINDIR}")
set(LIBDIR "${CMAKE_INSTALL_FULL_LIBDIR}")