From 561a597f94db13d39189c627de052ea1a1fe9d5e Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Fri, 6 Jan 2017 15:55:55 +0100 Subject: [PATCH] Add lib/pack to CMake build The static library pack has no dependencies and required no additional checks. --- lib/CMakeLists.txt | 1 + lib/pack/CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 lib/pack/CMakeLists.txt diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 1350f1292..d69ad8aa5 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -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 index 000000000..890886295 --- /dev/null +++ b/lib/pack/CMakeLists.txt @@ -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} +) -- 2.40.0