From: Matthew Fernandez Date: Sat, 22 Aug 2020 19:13:07 +0000 (-0700) Subject: diambiguate lib/topfish/*.c #includes X-Git-Tag: 2.46.0~20^2^2~90^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebccaed33b721f5669be46ed176726c7cefbbb9f;p=graphviz diambiguate lib/topfish/*.c #includes Related to #1242 and #1785. --- diff --git a/lib/topfish/CMakeLists.txt b/lib/topfish/CMakeLists.txt index dc6475e4b..302964125 100644 --- a/lib/topfish/CMakeLists.txt +++ b/lib/topfish/CMakeLists.txt @@ -1,11 +1,5 @@ if (with_smyrna) -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${GRAPHVIZ_LIB_DIR}/common - ${GRAPHVIZ_LIB_DIR}/neatogen -) - add_library(topfish STATIC # Header files hierarchy.h @@ -15,4 +9,11 @@ add_library(topfish STATIC rescale_layout.c ) +target_include_directories(topfish PRIVATE + ${GRAPHVIZ_LIB_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${GRAPHVIZ_LIB_DIR}/common + ${GRAPHVIZ_LIB_DIR}/neatogen +) + endif (with_smyrna) diff --git a/lib/topfish/Makefile.am b/lib/topfish/Makefile.am index b20a14bfc..647ecbb44 100644 --- a/lib/topfish/Makefile.am +++ b/lib/topfish/Makefile.am @@ -2,6 +2,7 @@ # ## Process this file with automake to produce Makefile.in # AM_CPPFLAGS = \ + -I$(top_srcdir)/lib \ -I$(top_srcdir)/lib/neatogen \ -I$(top_srcdir)/lib/common diff --git a/lib/topfish/hierarchy.c b/lib/topfish/hierarchy.c index 2ab06636a..75b91520c 100644 --- a/lib/topfish/hierarchy.c +++ b/lib/topfish/hierarchy.c @@ -24,9 +24,9 @@ #include #include #include -#include "memory.h" -#include "arith.h" -#include "hierarchy.h" +#include +#include +#include static int cur_level = 0; diff --git a/lib/topfish/rescale_layout.c b/lib/topfish/rescale_layout.c index 50c511bf5..11dc4ec0e 100644 --- a/lib/topfish/rescale_layout.c +++ b/lib/topfish/rescale_layout.c @@ -29,11 +29,10 @@ #include #include #include -#include "matrix_ops.h" -/* #include "hierarchy.h" */ -#include "delaunay.h" -#include "memory.h" -#include "arith.h" +#include +#include +#include +#include static double *compute_densities(v_data * graph, int n, double *x, double *y) diff --git a/lib/topfish/topfish.vcxproj b/lib/topfish/topfish.vcxproj index 87147e372..4879d0a62 100644 --- a/lib/topfish/topfish.vcxproj +++ b/lib/topfish/topfish.vcxproj @@ -60,7 +60,7 @@ EditAndContinue true 4996 - $(SolutionDir)windows\include;$(SolutionDir)lib\common;$(SolutionDir)lib\neatogen;%(AdditionalIncludeDirectories) + $(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\common;$(SolutionDir)lib\neatogen;%(AdditionalIncludeDirectories) @@ -71,7 +71,7 @@ Level4 true 4996 - $(SolutionDir)windows\include;$(SolutionDir)lib\common;$(SolutionDir)lib\neatogen;%(AdditionalIncludeDirectories) + $(SolutionDir)windows\include;$(SolutionDir)lib;$(SolutionDir)lib\common;$(SolutionDir)lib\neatogen;%(AdditionalIncludeDirectories)