Code

Cmake: Generate inkscape_version.h
authorverbalshadow <verbalshadow@users.sourceforge.net>
Mon, 31 Mar 2008 22:50:24 +0000 (22:50 +0000)
committerverbalshadow <verbalshadow@users.sourceforge.net>
Mon, 31 Mar 2008 22:50:24 +0000 (22:50 +0000)
CMakeScripts/ConfigInkscapeDepends.cmake
config.h.cmake

index 607ce760192284b9c3e2123af2033821f05c8926..50527749dabf885126471eda55e2fbfea1d68a64 100644 (file)
@@ -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")
index 6f83fd21f7a65356c446de13c500085f9607fcca..fe4666ec2f9d9682e26463d70ffe58a4db810284 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _CONFIG_H_
 #define _CONFIG_H_
 
+//#define INKSCAPE_VERSION "${INKSCAPE_VERSION}"
+
 /* Define WIN32 when on windows */
 #ifndef WIN32
 #cmakedefine WIN32