aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-05-30 20:22:59 +0200
committerjaseg <git@jaseg.de>2021-05-30 20:22:59 +0200
commitbbf1c02e799573532d1f5416fafe1b2255168bba (patch)
treee695d9cb5d2c311f3581f7e123669f072000fd30 /svg-flatten/Makefile
parentd1755701779b88389dc1d2e30d2430320a17f78e (diff)
downloadgerbolyze-bbf1c02e799573532d1f5416fafe1b2255168bba.tar.gz
gerbolyze-bbf1c02e799573532d1f5416fafe1b2255168bba.tar.bz2
gerbolyze-bbf1c02e799573532d1f5416fafe1b2255168bba.zip
Contour finding tests run through
Diffstat (limited to 'svg-flatten/Makefile')
-rw-r--r--svg-flatten/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/svg-flatten/Makefile b/svg-flatten/Makefile
index a82094c..0824561 100644
--- a/svg-flatten/Makefile
+++ b/svg-flatten/Makefile
@@ -35,9 +35,11 @@ BASE64_INCLUDES ?= -I$(UPSTREAM_DIR)/cpp-base64
ARGAGG_INCLUDES ?= -I$(UPSTREAM_DIR)/argagg/include/argagg
CAVC_INCLUDES ?= -I$(UPSTREAM_DIR)/CavalierContours/include/cavc/
SUBPROCESS_INCLUDES ?= -I$(UPSTREAM_DIR)/subprocess.h
+MINUNIT_INCLUDES ?= -I$(UPSTREAM_DIR)/minunit
+STB_INCLUDES ?= -isystem$(UPSTREAM_DIR)/stb
SOURCES += $(CLIPPER_SOURCES)
-INCLUDES := -Iinclude -Isrc $(CLIPPER_INCLUDES) $(VORONOI_INCLUDES) $(POISSON_INCLUDES) $(BASE64_INCLUDES) $(ARGAGG_INCLUDES) $(CAVC_INCLUDES) $(SUBPROCESS_INCLUDES)
+INCLUDES := -Iinclude -Isrc $(CLIPPER_INCLUDES) $(VORONOI_INCLUDES) $(POISSON_INCLUDES) $(BASE64_INCLUDES) $(ARGAGG_INCLUDES) $(CAVC_INCLUDES) $(SUBPROCESS_INCLUDES) $(MINUNIT_INCLUDES) $(STB_INCLUDES)
PKG_CONFIG_DEPS := pugixml
CXXFLAGS := -std=c++2a -g -Wall -Wextra -O0
@@ -74,6 +76,14 @@ $(BUILDDIR)/$(TARGET): $(SOURCES:%.cpp=$(BUILDDIR)/%.o)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ -Wl,--start-group $^ -lstdc++fs -Wl,--end-group; \
fi
+$(BUILDDIR)/nopencv-tests: src/nopencv_test.cpp src/nopencv.cpp
+ @mkdir -p $(dir $@)
+ $(CXX) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) -o $@ $^
+
+
+.PHONY: tests
+tests: $(BUILDDIR)/nopencv-tests
+
.PHONY: install
install:
$(INSTALL) $(BUILDDIR)/$(TARGET) $(PREFIX)/bin