Related to #1242 and #1785.
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}
- ${GRAPHVIZ_LIB_DIR}/cdt
- ${GRAPHVIZ_LIB_DIR}/cgraph
- ${GRAPHVIZ_LIB_DIR}/common
-)
-
add_library(label STATIC
# Header files
index.h
split.q.c
xlabels.c
)
+
+target_include_directories(label PRIVATE
+ ${GRAPHVIZ_LIB_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${GRAPHVIZ_LIB_DIR}/cdt
+ ${GRAPHVIZ_LIB_DIR}/cgraph
+ ${GRAPHVIZ_LIB_DIR}/common
+)
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/cgraph \
-I$(top_srcdir)/lib/cdt
#include <stdlib.h>
-#include "index.h"
+#include <label/index.h>
#include <stdio.h>
#include <assert.h>
-#include "logic.h"
-#include "memory.h"
+#include <common/logic.h>
+#include <common/memory.h>
LeafList_t *RTreeNewLeafList(Leaf_t * lp)
{
#include <stdlib.h>
-#include "index.h"
+#include <label/index.h>
#include <stdio.h>
#include <assert.h>
-#include "node.h"
+#include <label/node.h>
/* Make a new node and initialize to have all branch cells empty.
*/
#include <string.h>
#include <unistd.h>
-#include <memory.h>
-#include <gvc.h>
-#include "xlabels.h"
+#include <common/memory.h>
+#include <gvc/gvc.h>
+#include <labels/xlabels.h>
#if 0
#define POINTS_PER_INCH 72
#include "config.h"
-#include "index.h"
+#include <label/index.h>
#include <stdio.h>
#include <assert.h>
#include <limits.h>
-#include "logic.h"
-#include "arith.h"
-#include "rectangle.h"
-#include <cgraph.h>
+#include <common/logic.h>
+#include <common/arith.h>
+#include <label/rectangle.h>
+#include <cgraph/cgraph.h>
#define Undefined(x) ((x)->boundary[0] > (x)->boundary[NUMDIMS])
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
-#include "index.h"
+#include <label/index.h>
#include <stdio.h>
#include <assert.h>
-#include "split.q.h"
-#include "logic.h"
+#include <label/split.q.h>
+#include <common/logic.h>
/* Forward declarations */
static void MethodZero(RTree_t * rtp);
#include <stdio.h>
#include <string.h>
#define XLABEL_INT
-#include <xlabels.h>
-#include <memory.h>
+#include <label/xlabels.h>
+#include <common/memory.h>
extern int Verbose;