summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAnton Adamansky <adamansky@gmail.com>2015-04-16 12:27:41 +0600
committerAnton Adamansky <adamansky@gmail.com>2015-04-16 12:27:41 +0600
commit90989ac47b98f0f9b1caecf30833fe116c911561 (patch)
tree1558f11056345555148d86b84eaf92596f41ba58 /CMakeLists.txt
parentbbae9bb8aacfc7d4923a4d29005d2d4a704371dd (diff)
downloadejdb-90989ac47b98f0f9b1caecf30833fe116c911561.tar.gz
ejdb-90989ac47b98f0f9b1caecf30833fe116c911561.tar.bz2
ejdb-90989ac47b98f0f9b1caecf30833fe116c911561.zip
#131
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt20
1 files changed, 13 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6907112..e806cf5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,22 +1,26 @@
cmake_minimum_required(VERSION 2.6)
#cmake_policy(VERSION 2.6)
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
+set(DEB_CHANGELOG_REQUIRED ON)
+include(DebChangelog)
+
set(PROJECT_NAME "ejdb")
set(PROJECT_VENDOR "Softmotions")
set(PROJECT_WEBSITE "http://ejdb.org")
set(PROJECT_MAINTAINER "Anton Adamansky <adamansky@gmail.com>")
set(PROJECT_DESCRIPTION_SUMMARY "Embedded JSON database library (EJDB)")
-set(PROJECT_DESCRIPTION
-"EJDB aims to be a fast MongoDB-like library which can be embedded into C/C++ applications under terms of LGPL license.")
+set(PROJECT_DESCRIPTION "EJDB aims to be a fast MongoDB-like library which can be embedded into C/C++ applications under terms of LGPL license.")
+set(CHANGELOG_MESSAGE ${CHANGELOG_LAST_MESSAGE})
set(PROJECT_PPA "ppa:adamansky/ejdb")
set(PROJECT_PPA_USER "adamansky")
set(PROJECT_PPA_DISTRIB_TARGET vivid utopic trusty precise)
project(${PROJECT_NAME} C)
-set(PROJECT_VERSION_MAJOR 1)
-set(PROJECT_VERSION_MINOR 2)
-set(PROJECT_VERSION_PATCH 6)
+set(PROJECT_VERSION_MAJOR ${CHANGELOG_LAST_VERSION_MAJOR})
+set(PROJECT_VERSION_MINOR ${CHANGELOG_LAST_VERSION_MINOR})
+set(PROJECT_VERSION_PATCH ${CHANGELOG_LAST_VERSION_PATCH})
set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
set(${PROJECT_NAME}_VERSION ${PROJECT_VERSION})
set(${PROJECT_NAME}_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
@@ -41,8 +45,6 @@ else(CMAKE_SIZEOF_VOID_P MATCHES 8)
set(PROJECT_ARCH "x86")
endif(CMAKE_SIZEOF_VOID_P MATCHES 8)
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
-
include(GNUInstallDirs)
include(EjdbUtils)
@@ -99,3 +101,7 @@ endif()
if (PROJECT_ARCH)
message("PROJECT_ARCH: ${PROJECT_ARCH}")
endif()
+message("PROJECT: ${CHANGELOG_LAST_LINE}")
+if (CHANGELOG_MESSAGE)
+ message("CHANGELOG_MESSAGE:\n ${CHANGELOG_MESSAGE}")
+endif()