]> granicus.if.org Git - graphviz/commitdiff
Add lib/label to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Thu, 5 Jan 2017 09:36:10 +0000 (10:36 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 19 Jan 2017 11:53:50 +0000 (12:53 +0100)
The static library label has no dependencies and required no
additional checks.

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

index 0e990dab9e814db10ef348f6952495d27f5fe861..20a660c1a2e437ff92222335b80cc82f992dd60e 100644 (file)
@@ -3,6 +3,7 @@ add_subdirectory(cdt)
 add_subdirectory(circogen)
 add_subdirectory(dotgen)
 add_subdirectory(fdpgen)
+add_subdirectory(label)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
 add_subdirectory(twopigen)
diff --git a/lib/label/CMakeLists.txt b/lib/label/CMakeLists.txt
new file mode 100644 (file)
index 0000000..22973dd
--- /dev/null
@@ -0,0 +1,22 @@
+include_directories(
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+)
+
+add_library(label STATIC
+    # Header files
+    index.h
+    node.h
+    rectangle.h
+    split.q.h
+    xlabels.h
+
+    # Source files
+    index.c
+    node.c
+    rectangle.c
+    split.q.c
+    xlabels.c
+)