The static library 'topfish' has no dependencies, but the `with_smyrna`
option had to be added.
option(with_ipsepcola "IPSEPCOLA features in neato layout engine (disabled by default - C++ portability issues)." OFF )
option(with_ortho "ORTHO features in neato layout engine." ON )
option(with_sfdp "sfdp layout engine." ON )
+option(with_smyrna "SMYRNA large graph viewer (disabled by default - experimental)" OFF)
if (with_digcola)
add_definitions(-DDIGCOLA)
add_definitions(-DSFDP)
endif (with_sfdp)
+if (with_smyrna)
+ # TODO include dependency checks
+ add_definitions(-DSMYRNA)
+endif (with_smyrna)
+
# ===================== Append local CMake module directory ====================
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
add_subdirectory(sparse)
add_subdirectory(sfdpgen)
add_subdirectory(spine)
+add_subdirectory(topfish)
add_subdirectory(twopigen)
add_subdirectory(vmalloc)
add_subdirectory(vpsc)
--- /dev/null
+if (with_smyrna)
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GRAPHVIZ_LIB_DIR}/common
+ ${GRAPHVIZ_LIB_DIR}/neatogen
+)
+
+add_library(topfish STATIC
+ # Header files
+ hierarchy.h
+
+ # Source files
+ hierarchy.c
+ rescale_layout.c
+)
+
+endif (with_smyrna)