]> granicus.if.org Git - graphviz/commitdiff
Add lib/topfish to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Sun, 29 Jan 2017 09:35:17 +0000 (10:35 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 6 Apr 2017 19:38:01 +0000 (21:38 +0200)
The static library 'topfish' has no dependencies, but the `with_smyrna`
option had to be added.

CMakeLists.txt
lib/CMakeLists.txt
lib/topfish/CMakeLists.txt [new file with mode: 0644]

index 8d5f661ac495886aa772e0b472e53131d23418f0..314dce63b6f1fa40e689380c9787822e3bab0c2e 100644 (file)
@@ -6,6 +6,7 @@ option(with_digcola    "DIGCOLA features in neato layout engine" ON )
 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)
@@ -23,6 +24,11 @@ if (with_sfdp)
     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")
 
index 7b7e125d27d536e074dcf63b789a5aa05af0cd2f..2f5ca931dce7aecd5a680cc05d20295a91489fb7 100644 (file)
@@ -15,6 +15,7 @@ add_subdirectory(rbtree)
 add_subdirectory(sparse)
 add_subdirectory(sfdpgen)
 add_subdirectory(spine)
+add_subdirectory(topfish)
 add_subdirectory(twopigen)
 add_subdirectory(vmalloc)
 add_subdirectory(vpsc)
diff --git a/lib/topfish/CMakeLists.txt b/lib/topfish/CMakeLists.txt
new file mode 100644 (file)
index 0000000..dc6475e
--- /dev/null
@@ -0,0 +1,18 @@
+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)