Skip to content

Commit

Permalink
ZRHC*, bind the application version to the source version.
Browse files Browse the repository at this point in the history
  • Loading branch information
yp committed Nov 16, 2010
1 parent ca3d65c commit c9b5851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
#
cmake_minimum_required (VERSION 2.8)
project (ZRHCstar)

set (APPLICATION_NAME "Zero-Recombinant Haplotyping with missing genotypes")
set (APPLICATION_CODENAME "${PROJECT_NAME}")
set (APPLICATION_COPYRIGHT_YEARS "2010")
set (APPLICATION_VERSION_MAJOR 1)
set (APPLICATION_VERSION_MINOR 0)
set (APPLICATION_VERSION_PATCH 0)
set (APPLICATION_VERSION_TYPE SNAPSHOT)
set (APPLICATION_VERSION_STRING "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}-${APPLICATION_VERSION_TYPE}")
set (APPLICATION_VENDOR_ID "org.tecnoparco")
set (APPLICATION_VENDOR_NAME "Parco Tecnologico Padano")
set (APPLICATION_VENDOR_URL "www.tecnoparco.org")
Expand Down Expand Up @@ -57,6 +53,7 @@ set (CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
set (CMAKE_CXX_FLAGS_DEBUG "-O0 -Wall ${CMAKE_CXX_FLAGS_DEBUG}")

include(ExtractSourceVersionFromGit)
set (APPLICATION_VERSION_STRING "${APPLICATION_SOURCE_VERSION}") # See the version from the 'git' repositories

#
# Configure Files
Expand Down
22 changes: 1 addition & 21 deletions include/appinfo.h.in.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
#cmakedefine APPLICATION_NAME "@APPLICATION_NAME@"
#cmakedefine APPLICATION_CODENAME "@APPLICATION_CODENAME@"
#cmakedefine APPLICATION_COPYRIGHT_YEARS "@APPLICATION_COPYRIGHT_YEARS@"
#cmakedefine APPLICATION_VERSION_MAJOR @APPLICATION_VERSION_MAJOR@
#cmakedefine APPLICATION_VERSION_MINOR @APPLICATION_VERSION_MINOR@
#cmakedefine APPLICATION_VERSION_PATCH @APPLICATION_VERSION_PATCH@
#cmakedefine APPLICATION_VERSION_TYPE "@APPLICATION_VERSION_TYPE@"
#cmakedefine APPLICATION_VERSION_STRING "@APPLICATION_VERSION_STRING@"
#cmakedefine APPLICATION_VENDOR_ID "@APPLICATION_VENDOR_ID@"
#cmakedefine APPLICATION_VENDOR_NAME "@APPLICATION_VENDOR_NAME@"
Expand All @@ -36,24 +32,8 @@
# error "Please specify the application copyright years (years during which this application was created, edited, or modified) in the top-level CMakeLists.txt file."
#endif

#ifndef APPLICATION_VERSION_MAJOR
# define APPLICATION_VERSION_MAJOR 0
#endif

#ifndef APPLICATION_VERSION_MINOR
# define APPLICATION_VERSION_MINOR 0
#endif

#ifndef APPLICATION_VERSION_PATCH
# define APPLICATION_VERSION_PATCH 0
#endif

#ifndef APPLICATION_VERSION_TYPE
# define APPLICATION_VERSION_TYPE "SNAPSHOT"
#endif

#ifndef APPLICATION_VERSION_STRING
# define APPLICATION_VERSION_STRING BOOST_PP_STRINGIZE(APPLICATION_VERSION_MAJOR) "." BOOST_PP_STRINGIZE(APPLICATION_VERSION_MINOR) "." BOOST_PP_STRINGIZE(APPLICATION_VERSION_PATCH) "-" APPLICATION_VERSION_TYPE
# error "Please specify the application version in the top-level CMakeLists.txt"
#endif

#ifndef APPLICATION_VENDOR_ID
Expand Down

0 comments on commit c9b5851

Please sign in to comment.