From: James Turner Date: Sun, 19 Dec 2010 19:08:14 +0000 (+0000) Subject: Create version.h during SimGear CMake build X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae9757bf43940db6ef1c53aa1769465ab657ebcb;p=simgear.git Create version.h during SimGear CMake build --- diff --git a/simgear/CMakeLists.txt b/simgear/CMakeLists.txt index 93a4e81a..3f6f03c5 100644 --- a/simgear/CMakeLists.txt +++ b/simgear/CMakeLists.txt @@ -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)