diff options
| author | Joshua L. Blocher <verbalshadow@gmail.com> | 2008-03-31 22:50:24 +0000 |
|---|---|---|
| committer | verbalshadow <verbalshadow@users.sourceforge.net> | 2008-03-31 22:50:24 +0000 |
| commit | a3651a7e9fc27c8d9901970f3b682fee4aafa00c (patch) | |
| tree | 28050d49b9284b4f9974d88357a134b670ca8e9d | |
| parent | test commit (diff) | |
| download | inkscape-a3651a7e9fc27c8d9901970f3b682fee4aafa00c.tar.gz inkscape-a3651a7e9fc27c8d9901970f3b682fee4aafa00c.zip | |
Cmake: Generate inkscape_version.h
(bzr r5286)
| -rw-r--r-- | CMakeScripts/ConfigInkscapeDepends.cmake | 3 | ||||
| -rw-r--r-- | config.h.cmake | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake index 607ce7601..50527749d 100644 --- a/CMakeScripts/ConfigInkscapeDepends.cmake +++ b/CMakeScripts/ConfigInkscapeDepends.cmake @@ -79,3 +79,6 @@ CHECK_INCLUDE_FILES (unistd.h HAVE_UNISTD_H) CHECK_INCLUDE_FILES (zlib.h HAVE_ZLIB_H) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) + +# Create File inkscape_version.h +FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n") diff --git a/config.h.cmake b/config.h.cmake index 6f83fd21f..fe4666ec2 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,6 +1,8 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ +//#define INKSCAPE_VERSION "${INKSCAPE_VERSION}" + /* Define WIN32 when on windows */ #ifndef WIN32 #cmakedefine WIN32 |
