Commit b6cb5c6e authored by John Ellson's avatar John Ellson Committed by GitHub

Merge pull request #1247 from krf/cmake-changes

CMake fixes (make compile; add graphviz_version.h)
parents 4f9ad6cd ffc61144
cmake_minimum_required (VERSION 2.8 FATAL_ERROR)
project (Graphviz)
include(FeatureSummary)
# =============================== Build options ================================
option(enable_ltdl "Support on-demand plugin loading" ON)
option(with_digcola "DIGCOLA features in neato layout engine" ON )
......@@ -96,6 +98,10 @@ endif()
# ============================ Set Graphviz version ============================
set(GRAPHVIZ_VERSION_MAJOR 2)
set(GRAPHVIZ_VERSION_MINOR 41)
set(GRAPHVIZ_VERSION_PATCH 0)
set(GRAPHVIZ_VERSION_STRING "${GRAPHVIZ_VERSION_MAJOR}.${GRAPHVIZ_VERSION_MINOR}.${GRAPHVIZ_VERSION_PATCH}")
configure_file(graphviz_version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/graphviz_version.h @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphviz_version.h DESTINATION ${HEADER_INSTALL_DIR})
# Set GRAPHVIZ_VERSION_BUILD to time of last commit, or to 0 if that fails.
execute_process(
......@@ -160,3 +166,5 @@ add_subdirectory(cmd)
enable_testing()
add_subdirectory(tests)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -55,6 +55,7 @@ add_simple_tool(ccomps)
add_simple_tool(gc)
add_simple_tool(nop)
add_simple_tool(tred)
target_link_libraries(tred common) # e.g. for start_timer
add_simple_tool(unflatten)
# ================================ complex tools ===============================
......
#define GVPLUGIN_CONFIG_FILE "config@GRAPHVIZ_PLUGIN_VERSION@"
#define GVPLUGIN_VERSION @GRAPHVIZ_PLUGIN_VERSION@
#define PACKAGE_BUGREPORT "http://www.graphviz.org/"
#define PACKAGE_NAME "graphviz"
#define PACKAGE_STRING "graphviz @GRAPHVIZ_VERSION_STRING@"
#define PACKAGE_TARNAME "graphviz"
#define PACKAGE_URL ""
#define PACKAGE_VERSION "@GRAPHVIZ_VERSION_STRING@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment