This adds the `PACKAGE_VERSION` define, which is used in various parts to
print the version number.
set(GRAPHVIZ_VERSION_BUILD 0)
endif()
-message(STATUS "Graphviz version: ${GRAPHVIZ_VERSION_MAJROR}.${GRAPHVIZ_VERSION_MINOR}.${GRAPHVIZ_VERSION_BUILD}")
+set(GRAPHVIZ_VERSION_FULL "${GRAPHVIZ_VERSION_MAJROR}.${GRAPHVIZ_VERSION_MINOR}.${GRAPHVIZ_VERSION_BUILD}")
-# Check avaiable headers, functions and libraries and write the result to config.h
-# ================================================================================
+message(STATUS "Graphviz version: ${GRAPHVIZ_VERSION_FULL}")
+
+# Generate config.h with proper defines
+# =====================================
include(config_checks)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
+// Values
+#define PACKAGE_VERSION "@GRAPHVIZ_VERSION_FULL@"
+
// Include headers
#cmakedefine HAVE_UNISTD_H