diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2018-06-18 21:18:49 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-06-18 21:18:49 +0200 |
| commit | ea61acb9fdb6c7f6c2084f36924d7860380320e2 (patch) | |
| tree | 8f1330477b6316686fcf52465cd842d0698b705f /test/unit/CMakeLists.txt | |
| parent | 6b77f5fa536de4c373cb97664fde7ce08cac022a (diff) | |
| download | PROJ-ea61acb9fdb6c7f6c2084f36924d7860380320e2.tar.gz PROJ-ea61acb9fdb6c7f6c2084f36924d7860380320e2.zip | |
Add pj_phi2_test (#1039 & #1045)
Nigrated from:
schwehr/gdal-autotest2:cpp/third_party/proj/pj_phi2_test.cc@master
License intentionally changed from Apache 2 to match PROJ.
Diffstat (limited to 'test/unit/CMakeLists.txt')
| -rw-r--r-- | test/unit/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 35c2c29d..a22665f8 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -57,3 +57,15 @@ target_link_libraries(proj_test_unit gtest ${PROJ_LIBRARIES}) add_test(NAME proj_test_unit COMMAND proj_test_unit) + +if (MSVC AND BUILD_LIBPROJ_SHARED) +# ph_phi2_test not compatible of a .dll build +else() +add_executable(pj_phi2_test + main.cpp + pj_phi2_test.cpp) +target_link_libraries(pj_phi2_test + gtest + ${PROJ_LIBRARIES}) +add_test(NAME pj_phi2_test COMMAND pj_phi2_test) +endif() |
