diff options
| author | Mateusz Loskot <mateusz@loskot.net> | 2018-06-07 23:44:00 +0200 |
|---|---|---|
| committer | Mateusz Loskot <mateusz@loskot.net> | 2018-06-08 00:04:45 +0200 |
| commit | b745ee0a10681d05f61a686e4d61c687ba9b8c48 (patch) | |
| tree | 61ddffc9b0b21dbcc0235de30b113f63f6b80c46 /test/unit/basic_test.cpp | |
| parent | ffd4674e4c15ee9bfb9c2298ad565e810b1e9110 (diff) | |
| download | PROJ-b745ee0a10681d05f61a686e4d61c687ba9b8c48.tar.gz PROJ-b745ee0a10681d05f61a686e4d61c687ba9b8c48.zip | |
Export proj target to scope visible for test/unit target
Refines #1034
Diffstat (limited to 'test/unit/basic_test.cpp')
| -rw-r--r-- | test/unit/basic_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit/basic_test.cpp b/test/unit/basic_test.cpp index 8ee82bf4..d565f839 100644 --- a/test/unit/basic_test.cpp +++ b/test/unit/basic_test.cpp @@ -27,13 +27,18 @@ ****************************************************************************/ #include "gtest_include.h" +#include <proj.h> +#include <memory> namespace { // --------------------------------------------------------------------------- TEST( dumy, dummy ) { - ASSERT_EQ( 1 , 1 ); + std::unique_ptr<PJ, decltype(&::proj_destroy)> pj( + ::proj_create(PJ_DEFAULT_CTX, "+proj=merc +ellps=clrk66 +lat_ts=33"), + &::proj_destroy); + ASSERT_NE(pj, nullptr); } } // namespace |
