Add: Setting to uniformly slow the acceleration and braking of realistic trains
[openttd-jgr.git] / CPackProperties.cmake.in
blob6faf88d20e7416ea5eb94d48f9d782a281a6f486
1 # Make the current version available to CPack
2 set(CPACK_PACKAGE_VERSION "@REV_VERSION@")
4 # Name the output file with the correct version
5 string(REPLACE "#CPACK_PACKAGE_VERSION#" "@REV_VERSION@" CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}")
7 string(REGEX REPLACE "^jgrpp-" "" CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
9 if (CPACK_BUNDLE_PLIST_SOURCE)
10     # Rewrite the Info.plist.in to contain the correct version
11     file(READ ${CPACK_BUNDLE_PLIST_SOURCE} INFO_PLIST_CONTENT)
12     string(REPLACE "#CPACK_PACKAGE_VERSION#" "@REV_VERSION@" INFO_PLIST_CONTENT "${INFO_PLIST_CONTENT}")
13     file(WRITE ${CPACK_BUNDLE_PLIST} "${INFO_PLIST_CONTENT}")
14 endif (CPACK_BUNDLE_PLIST_SOURCE)