diff options
Diffstat (limited to 'test/postinstall/testcpp')
| -rw-r--r-- | test/postinstall/testcpp/Makefile | 15 | ||||
| -rw-r--r-- | test/postinstall/testcpp/testcpp.cpp | 10 |
2 files changed, 25 insertions, 0 deletions
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 <proj/io.hpp> +#include <proj/crs.hpp> +#include <proj/coordinateoperation.hpp> +#include <proj/coordinatesystem.hpp> +#include <proj/datum.hpp> + +int main(int /*argc */, char** /* argv */) +{ + return 0; +} |
