index 184239cd8a3b337f32676b1b59c694a8cbf6ad29..d2086876723a69c6e50f9ae496a929de5cd5525b 100644 (file)
#---------------\r
# From here on:\r
# Set all HAVE_XXX variables, to correctly set all defines in config.h\r
-\r
+#SET(CMAKE_REQUIRED_INCLUDES ${INK_INCLUDES})\r
INCLUDE (CheckIncludeFiles)\r
INCLUDE (CheckFunctionExists)\r
INCLUDE (CheckStructMember)\r
CHECK_INCLUDE_FILES(sys/time.h HAVE_SYS_TIME_H)\r
CHECK_INCLUDE_FILES(sys/types.h HAVE_SYS_TYPES_H)\r
CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)\r
-CHECK_INCLUDE_FILES(zlib.h HAVE_ZLIB_H)
+CHECK_INCLUDE_FILES(zlib.h HAVE_ZLIB_H)\r
\r
-#Enable pango defines, necessary for compilation on Win32, how about Linux?
+#Enable pango defines, necessary for compilation on Win32, how about Linux?\r
# yes but needs to be done a better way\r
IF (HAVE_CAIRO_PDF)\r
SET(PANGO_ENABLE_ENGINE TRUE)\r
# Create the two configuration files: config.h and inkscape_version.h\r
# Create them in the binary root dir\r
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)\r
-FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")
+FILE(WRITE ${CMAKE_BINARY_DIR}/inkscape_version.h "#define INKSCAPE_VERSION \"${INKSCAPE_VERSION}\"\n")\r
+add_definitions(-DHAVE_CONFIG_H)\r