]> git.mxchange.org Git - simgear.git/commitdiff
Create version.h during SimGear CMake build
authorJames Turner <zakalawe@mac.com>
Sun, 19 Dec 2010 19:08:14 +0000 (19:08 +0000)
committerJames Turner <zakalawe@mac.com>
Sun, 19 Dec 2010 19:08:14 +0000 (19:08 +0000)
simgear/CMakeLists.txt

index 93a4e81a520e47007a262e6512921a381ad7d7b1..3f6f03c59b80e1f3a67e778e3b957912b6483a6a 100644 (file)
@@ -1,4 +1,6 @@
 
+file(WRITE ${PROJECT_BINARY_DIR}/simgear/version.h "#define SIMGEAR_VERSION ${SIMGEAR_VERSION}")
+
 foreach( mylibfolder 
         bucket
         debug
@@ -30,7 +32,7 @@ endif()
 
 
 
-set(HEADERS compiler.h constants.h sg_inlines.h version.h)
+set(HEADERS compiler.h constants.h sg_inlines.h ${PROJECT_BINARY_DIR}/simgear/version.h)
 install (FILES ${HEADERS}  DESTINATION include/simgear/)
 
 if(SIMGEAR_SHARED)