]> granicus.if.org Git - graphviz/commitdiff
Add lib/spine to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Sat, 7 Jan 2017 22:31:05 +0000 (23:31 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 19 Jan 2017 11:53:51 +0000 (12:53 +0100)
The static library 'spine' has no dependencies and required no
additional checks.

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

index 3333df50348afe66c00ccdab070cd6666d0ae04b..1934f622f6cbbbf58e413d97d94183bb4593bce9 100644 (file)
@@ -8,6 +8,7 @@ add_subdirectory(label)
 add_subdirectory(pack)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
+add_subdirectory(spine)
 add_subdirectory(twopigen)
 add_subdirectory(vmalloc)
 add_subdirectory(xdot)
diff --git a/lib/spine/CMakeLists.txt b/lib/spine/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7a866ab
--- /dev/null
@@ -0,0 +1,20 @@
+include_directories(
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+)
+
+add_library(spine STATIC
+    # Header files
+    quad.h
+    spine.h
+    spinehdr.h
+    subset.h
+    union_find.h
+
+    # Source files
+    quad.c
+    spine.c
+    subset.c
+    union_find.c
+)