BuildVersion.cmake
上传用户:king477883
上传日期:2021-03-01
资源大小:9553k
文件大小:1k
源码类别:

游戏引擎

开发平台:

C++ Builder

  1. # -*- cmake -*-
  2. include(Python)
  3. macro (build_version _target)
  4.   execute_process(
  5.       COMMAND ${PYTHON_EXECUTABLE} ${SCRIPTS_DIR}/build_version.py
  6.         llversion${_target}.h ${LLCOMMON_INCLUDE_DIRS}
  7.       OUTPUT_VARIABLE ${_target}_VERSION
  8.       OUTPUT_STRIP_TRAILING_WHITESPACE
  9.       )
  10.   if (${_target}_VERSION)
  11.     message(STATUS "Version of ${_target} is ${${_target}_VERSION}")
  12.   else (${_target}_VERSION)
  13.     message(SEND_ERROR "Could not determine ${_target} version")
  14.   endif (${_target}_VERSION)
  15. endmacro (build_version)