# GMM (C) 2018 Stephane Charette <stephanecharette@gmail.com>
# $Id: CM_version.cmake 2601 2018-09-15 20:40:24Z stephane $


EXECUTE_PROCESS (
	COMMAND svnversion
	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
	OUTPUT_VARIABLE GMM_VER_SVN
	OUTPUT_STRIP_TRAILING_WHITESPACE )
SET ( GMM_VER_MAJOR 1 )
SET ( GMM_VER_MINOR 0 )
SET ( GMM_VER_PATCH 0-${GMM_VER_SVN} )
SET ( GMM_VERSION ${GMM_VER_MAJOR}.${GMM_VER_MINOR}.${GMM_VER_PATCH} )
MESSAGE ( "Building ver: ${GMM_VERSION}" )
