diff options
| author | Mike Taves <mwtoews@gmail.com> | 2020-03-21 14:16:00 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-21 14:16:00 +1300 |
| commit | b76acd354ca376194fb1fb682e5347dbf2e20f8d (patch) | |
| tree | 2112c2a945ab8470373bbc1539b5d5e01c686885 /test/postinstall/testappprojinfo/Makefile | |
| parent | 56b0d6c5066205be5a046b6a999681b9197246bf (diff) | |
| download | PROJ-b76acd354ca376194fb1fb682e5347dbf2e20f8d.tar.gz PROJ-b76acd354ca376194fb1fb682e5347dbf2e20f8d.zip | |
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'
Diffstat (limited to 'test/postinstall/testappprojinfo/Makefile')
| -rw-r--r-- | test/postinstall/testappprojinfo/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
