The static library 'ortho' has no dependencies, but the `WITH_ORTHO`
option had to be added, for this is also done in the Autotools build.
cmake_minimum_required (VERSION 2.8 FATAL_ERROR)
project (Graphviz)
+# Build options
+# =============
+option(WITH_ORTHO "ORTHO features in neato layout engine." ON )
+
# Append local CMake module directory
# ===================================
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
add_subdirectory(fdpgen)
add_subdirectory(ingraphs)
add_subdirectory(label)
+add_subdirectory(ortho)
add_subdirectory(osage)
add_subdirectory(pack)
add_subdirectory(patchwork)
--- /dev/null
+if (WITH_ORTHO)
+
+add_definitions(-D_BLD_gvc=1)
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GRAPHVIZ_LIB_DIR}/cdt
+ ${GRAPHVIZ_LIB_DIR}/cgraph
+ ${GRAPHVIZ_LIB_DIR}/common
+ ${GRAPHVIZ_LIB_DIR}/gvc
+ ${GRAPHVIZ_LIB_DIR}/neatogen
+ ${GRAPHVIZ_LIB_DIR}/pack
+ ${GRAPHVIZ_LIB_DIR}/pathplan
+)
+
+add_library(ortho STATIC
+ # Header files
+ fPQ.h
+ maze.h
+ ortho.h
+ partition.h
+ rawgraph.h
+ sgraph.h
+ structures.h
+ trap.h
+
+ # Source files
+ fPQ.c
+ maze.c
+ ortho.c
+ partition.c
+ rawgraph.c
+ sgraph.c
+ trapezoid.c
+)
+
+endif (WITH_ORTHO)
\ No newline at end of file