source: git/modules/VersionMacros.cmake @ 6ce030f

spielwiese
Last change on this file since 6ce030f was 8cc501, checked in by Kai Krüger <krueger@…>, 14 years ago
Added files to compile with cmake. Still experimental. Might not work git-svn-id: file:///usr/local/Singular/svn/trunk@13240 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 325 bytes
Line 
1# -*- mode: cmake; -*-
2#
3# create file kversion.h
4#
5function(create_version GEN_VERSION_HEADER)
6  set(${GEN_VERSION_HEADER} ${CMAKE_CURRENT_BINARY_DIR}/kversion.h)
7  execute_process(COMMAND date +%Y%m%d%H
8    OUTPUT_VARIABLE  _version)
9  file(WRITE ${${GEN_VERSION_HEADER}} "#define feVersionId0 ${_version}" )
10endfunction()
Note: See TracBrowser for help on using the repository browser.