aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-02 22:34:56 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-02-04 21:43:42 +0100
commit87318283eedef680356ef272a6af39ac3140d333 (patch)
treede858fc84d84e0ac6eec8d121ee5f2b76b55e0ea /src/CMakeLists.txt
parent42035701c02d15d586e762afa1db5c8b5c9eac39 (diff)
downloadPROJ-87318283eedef680356ef272a6af39ac3140d333.tar.gz
PROJ-87318283eedef680356ef272a6af39ac3140d333.zip
Add projsync utility
Fixes #1750
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8cf57306..534bc311 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -15,6 +15,8 @@ option(BUILD_PROJ
"Build proj (cartographic projection tool)" ON)
option(BUILD_PROJINFO
"Build projinfo (SRS and coordinate operation metadata/query tool)" ON)
+option(BUILD_PROJSYNC
+ "Build projsync (synchronize transformation support data)" ON)
if(NOT MSVC)
@@ -72,6 +74,15 @@ if(BUILD_GIE)
set(BIN_TARGETS ${BIN_TARGETS} gie)
endif()
+if(BUILD_PROJSYNC)
+ if(NOT ENABLE_CURL)
+ message(SEND_ERROR "projsync requires Curl")
+ endif()
+ include(bin_projsync.cmake)
+ set(BIN_TARGETS ${BIN_TARGETS} bin_projsync)
+endif()
+
+
if(MSVC OR CMAKE_CONFIGURATION_TYPES)
if(BIN_TARGETS)
# Add _d suffix for your debug versions of the tools