|
|
@ -13,10 +13,18 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
|
|
|
|
include(OpenMWMacros)
|
|
|
|
include(OpenMWMacros)
|
|
|
|
|
|
|
|
|
|
|
|
# Version
|
|
|
|
# Version
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_MAJOR 0)
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_MINOR 29)
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_RELEASE 0)
|
|
|
|
|
|
|
|
|
|
|
|
include(GetGitRevisionDescription)
|
|
|
|
set(OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}")
|
|
|
|
|
|
|
|
|
|
|
|
get_git_tag_revision(TAGHASH --tags --max-count=1 "HEAD...")
|
|
|
|
if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
find_package(Git)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(GIT_FOUND)
|
|
|
|
|
|
|
|
include(GetGitRevisionDescription)
|
|
|
|
|
|
|
|
get_git_tag_revision(TAGHASH --tags --max-count=1)
|
|
|
|
get_git_head_revision(REFSPEC COMMITHASH)
|
|
|
|
get_git_head_revision(REFSPEC COMMITHASH)
|
|
|
|
git_describe(VERSION --tags ${TAGHASH})
|
|
|
|
git_describe(VERSION --tags ${TAGHASH})
|
|
|
|
|
|
|
|
|
|
|
@ -32,8 +40,12 @@ if (MATCH)
|
|
|
|
|
|
|
|
|
|
|
|
message(STATUS "Configuring OpenMW ${OPENMW_VERSION}...")
|
|
|
|
message(STATUS "Configuring OpenMW ${OPENMW_VERSION}...")
|
|
|
|
else(MATCH)
|
|
|
|
else(MATCH)
|
|
|
|
message(FATAL_ERROR "Failed to get valid version information from Git")
|
|
|
|
message(WARNING "Failed to get valid version information from Git")
|
|
|
|
endif(MATCH)
|
|
|
|
endif(MATCH)
|
|
|
|
|
|
|
|
else(GIT_FOUND)
|
|
|
|
|
|
|
|
message(WARNING "Git executable not found")
|
|
|
|
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
|
|
|
|
# doxygen main page
|
|
|
|
# doxygen main page
|
|
|
|
|
|
|
|
|
|
|
|