|
|
@ -6,20 +6,22 @@ if (APPLE)
|
|
|
|
set(APP_BUNDLE_DIR "${OpenMW_BINARY_DIR}/${APP_BUNDLE_NAME}")
|
|
|
|
set(APP_BUNDLE_DIR "${OpenMW_BINARY_DIR}/${APP_BUNDLE_NAME}")
|
|
|
|
endif (APPLE)
|
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
|
|
|
|
# Macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
|
|
|
|
|
|
|
|
|
|
|
|
include(OpenMWMacros)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Version
|
|
|
|
# Version
|
|
|
|
|
|
|
|
message(STATUS "Configuring OpenMW...")
|
|
|
|
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_MAJOR 0)
|
|
|
|
set(OPENMW_VERSION_MAJOR 0)
|
|
|
|
set(OPENMW_VERSION_MINOR 29)
|
|
|
|
set(OPENMW_VERSION_MINOR 29)
|
|
|
|
set(OPENMW_VERSION_RELEASE 0)
|
|
|
|
set(OPENMW_VERSION_RELEASE 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_COMMITHASH "")
|
|
|
|
|
|
|
|
set(OPENMW_VERSION_TAGHASH "")
|
|
|
|
|
|
|
|
|
|
|
|
set(OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}")
|
|
|
|
set(OPENMW_VERSION "${OPENMW_VERSION_MAJOR}.${OPENMW_VERSION_MINOR}.${OPENMW_VERSION_RELEASE}")
|
|
|
|
|
|
|
|
|
|
|
|
if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/shallow)
|
|
|
|
find_package(Git)
|
|
|
|
find_package(Git)
|
|
|
|
|
|
|
|
|
|
|
|
if(GIT_FOUND)
|
|
|
|
if(GIT_FOUND)
|
|
|
@ -38,15 +40,21 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
set(OPENMW_VERSION_COMMITHASH "${COMMITHASH}")
|
|
|
|
set(OPENMW_VERSION_COMMITHASH "${COMMITHASH}")
|
|
|
|
set(OPENMW_VERSION_TAGHASH "${TAGHASH}")
|
|
|
|
set(OPENMW_VERSION_TAGHASH "${TAGHASH}")
|
|
|
|
|
|
|
|
|
|
|
|
message(STATUS "Configuring OpenMW ${OPENMW_VERSION}...")
|
|
|
|
message(STATUS "OpenMW version ${OPENMW_VERSION}")
|
|
|
|
else(MATCH)
|
|
|
|
else(MATCH)
|
|
|
|
message(WARNING "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)
|
|
|
|
else(GIT_FOUND)
|
|
|
|
message(WARNING "Git executable not found")
|
|
|
|
message(WARNING "Git executable not found")
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
endif(GIT_FOUND)
|
|
|
|
|
|
|
|
else(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/shallow)
|
|
|
|
|
|
|
|
message(STATUS "Shallow Git clone detected, not attempting to retrieve version info")
|
|
|
|
|
|
|
|
endif(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/shallow)
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Macros
|
|
|
|
|
|
|
|
include(OpenMWMacros)
|
|
|
|
|
|
|
|
|
|
|
|
# doxygen main page
|
|
|
|
# doxygen main page
|
|
|
|
|
|
|
|
|
|
|
|
configure_file ("${OpenMW_SOURCE_DIR}/Docs/mainpage.hpp.cmake" "${OpenMW_SOURCE_DIR}/Docs/mainpage.hpp")
|
|
|
|
configure_file ("${OpenMW_SOURCE_DIR}/Docs/mainpage.hpp.cmake" "${OpenMW_SOURCE_DIR}/Docs/mainpage.hpp")
|
|
|
|