cmake/VersionScript.cmake
author morasa@smirgeline.hut.fi
Fri, 11 Sep 2009 16:45:04 +0300
branchnew-physics
changeset 447 fc9e4305fddf
parent 402 ce1e536ec897
permissions -rw-r--r--
create new physics branch
# location of output file is given as PROJECT_VERSION_FILE

# include cmake stuff
include ("cmake/FindVersion.cmake")
include ("cmake/FindTimestamp.cmake")

# determine PROJECT_VERSION
FindProjectVersion ("${CMAKE_SOURCE_DIR}")

# build date
FindBuildTimestamp ()

# create version.c
CONFIGURE_FILE (
    "${CMAKE_SOURCE_DIR}/src/version.c.in" "${PROJECT_VERSION_FILE}" @ONLY
)