Related to #1785.
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${GRAPHVIZ_LIB_DIR}/cdt
- ${GRAPHVIZ_LIB_DIR}/cgraph
-)
-
add_library(spine STATIC
# Header files
quad.h
subset.c
union_find.c
)
+
+target_include_directories(spine PRIVATE
+ ${GRAPHVIZ_LIB_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GRAPHVIZ_LIB_DIR}/cdt
+ ${GRAPHVIZ_LIB_DIR}/cgraph
+)
#pkgconfigdir = $(libdir)/pkgconfig
AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/cgraph \
-I$(top_srcdir)/lib/cdt
#include <stdlib.h>
#include <assert.h>
-#include "spinehdr.h"
-#include "quad.h"
-#include "subset.h"
+#include <spine/spinehdr.h>
+#include <spine/quad.h>
+#include <spine/subset.h>
static int cmpdeg(const void *v0, const void *v1)
{
/* vim:set shiftwidth=4 ts=4: */
-#include <spinehdr.h>
-#include <subset.h>
-#include <quad.h>
-#include "union_find.h"
-#include "assert.h"
+#include <spine/spinehdr.h>
+#include <spine/subset.h>
+#include <spine/quad.h>
+#include <spine/union_find.h>
+#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#ifdef MAIN
#include <getopt.h>
-#include "ingraphs.h"
+#include <ingraphs/ingraphs.h>
typedef struct {
FILE *outfp;
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
</ClCompile>
<Link>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
- <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(ProjectDir);$(SolutionDir)lib;$(SolutionDir)lib\cdt;$(SolutionDir)lib\cgraph;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
</ClCompile>
<Link>
/* vim:set shiftwidth=4 ts=4 */
-#include <spinehdr.h>
+#include <spine/spinehdr.h>
#include <stdlib.h>
-#include <subset.h>
+#include <spine/subset.h>
static void *mkPtrItem(Dt_t * d, ptritem * obj, Dtdisc_t * disc)
{
/* vim:set shiftwidth=4 ts=4: */
-#include <spinehdr.h>
-#include <union_find.h>
+#include <spine/spinehdr.h>
+#include <spine/union_find.h>
#include <assert.h>
typedef Agnode_t node_t;