From 104011fe6a6e5ab6d97733f293aa5892c0646435 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 25 Apr 2020 15:29:47 +0200 Subject: postinstall checks: check that we include installed C++ headers (refs #2182) --- test/postinstall/testcpp/Makefile | 15 +++++++++++++++ test/postinstall/testcpp/testcpp.cpp | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 test/postinstall/testcpp/Makefile create mode 100644 test/postinstall/testcpp/testcpp.cpp (limited to 'test/postinstall/testcpp') diff --git a/test/postinstall/testcpp/Makefile b/test/postinstall/testcpp/Makefile new file mode 100644 index 00000000..d6c47e65 --- /dev/null +++ b/test/postinstall/testcpp/Makefile @@ -0,0 +1,15 @@ +PROGRAM = testcpp +OBJECTS = $(addsuffix .o,$(PROGRAM)) + +override CXXFLAGS += -std=c++11 -fvisibility=hidden -g -Wall -Werror $(shell pkg-config proj --cflags) +override LDFLAGS += $(shell pkg-config proj --libs) + +all: $(PROGRAM) + +$(PROGRAM): $(OBJECTS) + $(CXX) -o $@ $< $(LDFLAGS) + +clean: + $(RM) $(PROGRAM) $(OBJECTS) + +.PHONY: clean diff --git a/test/postinstall/testcpp/testcpp.cpp b/test/postinstall/testcpp/testcpp.cpp new file mode 100644 index 00000000..a03ca0ee --- /dev/null +++ b/test/postinstall/testcpp/testcpp.cpp @@ -0,0 +1,10 @@ +#include +#include +#include +#include +#include + +int main(int /*argc */, char** /* argv */) +{ + return 0; +} -- cgit v1.2.3