Port version-defined-in-a-file logic over from fg.
This commit is contained in:
+3
-1
@@ -6,7 +6,9 @@ include (CPack)
|
||||
|
||||
project(SimGear)
|
||||
|
||||
set(SIMGEAR_VERSION "2.3.0")
|
||||
# read 'version' file into a variable (stripping any newlines or spaces)
|
||||
file(READ version versionFile)
|
||||
string(STRIP ${versionFile} SIMGEAR_VERSION)
|
||||
|
||||
#packaging
|
||||
SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
|
||||
|
||||
Reference in New Issue
Block a user