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
pack.c
)
+target_include_directories(pack PRIVATE
+ ${GRAPHVIZ_LIB_DIR}
+ ${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
+)
+
# Specify headers to be installed
install(
FILES pack.h
#pkgconfigdir = $(libdir)/pkgconfig
AM_CPPFLAGS = \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/lib/gvc \
-I$(top_srcdir)/lib/neatogen \
#include <math.h>
#include <assert.h>
-#include "render.h"
-#include "pack.h"
-#include "pointset.h"
+#include <common/render.h>
+#include <pack/pack.h>
+#include <common/pointset.h>
#include <assert.h>
#define strneq(a,b,n) (!strncmp(a,b,n))
*************************************************************************/
#include <assert.h>
-#include "render.h"
-#include "neatoprocs.h"
-#include "pack.h"
+#include <common/render.h>
+#include <neatogen/neatoprocs.h>
+#include <pack/pack.h>
/* Test driver for libpack library.
* Input consists of graphs in dot format.