From 90989ac47b98f0f9b1caecf30833fe116c911561 Mon Sep 17 00:00:00 2001 From: Anton Adamansky Date: Thu, 16 Apr 2015 12:27:41 +0600 Subject: #131 --- CMakeLists.txt | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') 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 ") 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() -- cgit v1.2.3