cmake/VersionScript.cmake
author nireco
Sat, 31 Jan 2009 12:33:08 +0200
changeset 443 5d1119729f58
parent 402 ce1e536ec897
permissions -rw-r--r--
worm02 two pics to comment
# 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
)