From b76acd354ca376194fb1fb682e5347dbf2e20f8d Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Sat, 21 Mar 2020 14:16:00 +1300 Subject: Add post-install checks for CMake and Autotools/pkg-config (#2077) * Checks CMake's find_package(PROJ) and find_package(PROJ4) * Checks pkg-config used with a Makefile (Linux and macOS only) * Use proj.h / libproj with a simple 'testappprojinfo' --- test/postinstall/testappprojinfo/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/postinstall/testappprojinfo/Makefile (limited to 'test/postinstall/testappprojinfo/Makefile') diff --git a/test/postinstall/testappprojinfo/Makefile b/test/postinstall/testappprojinfo/Makefile new file mode 100644 index 00000000..98c47f28 --- /dev/null +++ b/test/postinstall/testappprojinfo/Makefile @@ -0,0 +1,15 @@ +PROGRAM = testappprojinfo +OBJECTS = $(addsuffix .o,$(PROGRAM)) + +override CFLAGS += -g -Wall -Werror $(shell pkg-config proj --cflags) +override LDFLAGS += $(shell pkg-config proj --libs) + +all: $(PROGRAM) + +$(PROGRAM): $(OBJECTS) + $(CC) -o $@ $< $(LDFLAGS) + +clean: + $(RM) $(PROGRAM) $(OBJECTS) + +.PHONY: clean -- cgit v1.2.3