Add lib/vpsc to CMake build
authorErwin Janssen <erwinjanssen@outlook.com>
Fri, 20 Jan 2017 16:55:41 +0000 (17:55 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Fri, 20 Jan 2017 16:55:41 +0000 (17:55 +0100)
The static library 'vpsc' has no dependencies, but the `WITH_IPSEPCOLA`
option had to be added, for this is also done in the Autotools build. This
library is disabled by default due to C++ portability issues.

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

index 5ab14565aea1b6f9c38f78d2fc19c4213dc7c09a..890f9a9d76b9c92890f166c27a2e02b635f6bb33 100644 (file)
@@ -3,6 +3,7 @@ project (Graphviz)
 
 # Build options
 # =============
+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 )
 
 # Append local CMake module directory
index a19450e5300d2d4d0f27e4c0ffca8f22478d778f..3741e319905ce1158f407b121f359f8cd2604732 100644 (file)
@@ -15,6 +15,7 @@ add_subdirectory(sparse)
 add_subdirectory(spine)
 add_subdirectory(twopigen)
 add_subdirectory(vmalloc)
+add_subdirectory(vpsc)
 add_subdirectory(xdot)
 
 # Dependent on: cdt
diff --git a/lib/vpsc/CMakeLists.txt b/lib/vpsc/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9c23a1e
--- /dev/null
@@ -0,0 +1,32 @@
+if (WITH_IPSEPCOLA)
+
+include_directories(
+    ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+add_library(vpsc STATIC
+    # Header files
+    block.h
+    blocks.h
+    constraint.h
+    csolve_VPSC.h
+    generate-constraints.h
+    pairingheap/PairingHeap.h
+    pairingheap/dsexceptions.h
+    remove_rectangle_overlap.h
+    solve_VPSC.h
+    variable.h
+
+    # Source files
+    block.cpp
+    blocks.cpp
+    constraint.cpp
+    csolve_VPSC.cpp
+    generate-constraints.cpp
+    pairingheap/PairingHeap.cpp
+    remove_rectangle_overlap.cpp
+    solve_VPSC.cpp
+    variable.cpp
+)
+
+endif (WITH_IPSEPCOLA)
\ No newline at end of file