]> granicus.if.org Git - graphviz/commitdiff
Add lib/pack to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Fri, 6 Jan 2017 14:55:55 +0000 (15:55 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 19 Jan 2017 11:53:51 +0000 (12:53 +0100)
The static library pack has no dependencies and required no
additional checks.

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

index 1350f1292444fa98550262a037a6f979f8c96554..d69ad8aa5c8924d0ab2906c916aefa97195d9e9b 100644 (file)
@@ -4,6 +4,7 @@ add_subdirectory(circogen)
 add_subdirectory(dotgen)
 add_subdirectory(fdpgen)
 add_subdirectory(label)
+add_subdirectory(pack)
 add_subdirectory(patchwork)
 add_subdirectory(pathplan)
 add_subdirectory(twopigen)
diff --git a/lib/pack/CMakeLists.txt b/lib/pack/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8908862
--- /dev/null
@@ -0,0 +1,32 @@
+add_definitions(-DGVC_EXPORTS)
+
+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}/pathplan
+)
+
+add_library(pack STATIC
+    # Header files
+    pack.h
+
+    # Source files
+    ccomps.c
+    pack.c
+)
+
+# Specify headers to be installed
+install(
+    FILES pack.h
+    DESTINATION ${HEADER_INSTALL_DIR}
+)
+
+# Specify man pages to be installed
+install(
+    FILES pack.3
+    DESTINATION ${MAN_INSTALL_DIR}
+)