@ -4,7 +4,9 @@ if(NOT BINARY_NAME)
set ( BINARY_NAME openttd )
endif ( )
project ( ${ BINARY_NAME } )
project ( ${ BINARY_NAME }
V E R S I O N 1 . 1 2 . 0
)
if ( CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR )
message ( FATAL_ERROR "In-source builds not allowed. Please run \" cmake ..\ " from the build directory. You may need to delete \" ${ CMAKE_SOURCE_DIR } /CMakeCache.txt\ " first." )
@ -72,6 +74,9 @@ add_custom_target(find_version
$ { C M A K E _ C O M M A N D }
- D F I N D _ V E R S I O N _ B I N A R Y _ D I R = $ { C M A K E _ B I N A R Y _ D I R } / g e n e r a t e d
- D C P A C K _ B I N A R Y _ D I R = $ { C M A K E _ B I N A R Y _ D I R }
- D R E V _ M A J O R = $ { C M A K E _ P R O J E C T _ V E R S I O N _ M A J O R }
- D R E V _ M I N O R = $ { C M A K E _ P R O J E C T _ V E R S I O N _ M I N O R }
- D R E V _ B U I L D = $ { C M A K E _ P R O J E C T _ V E R S I O N _ P A T C H }
- P " $ { C M A K E _ S O U R C E _ D I R } / c m a k e / s c r i p t s / F i n d V e r s i o n . c m a k e "
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ S O U R C E _ D I R }
B Y P R O D U C T S $ { G E N E R A T E D _ S O U R C E _ F I L E S }