Created
October 29, 2018 11:28
-
-
Save ndarilek/0aa406460f9c066d0af1ee5c73c720a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.4.1) | |
include(ExternalProject) | |
ExternalProject_Add(proj | |
URL http://download.osgeo.org/proj/proj-4.9.3.tar.gz | |
# URL_HASH MD5=d41d8cd98f00b204e9800998ecf8427e | |
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --without-mutex | |
BUILD_COMMAND "make" | |
) | |
ExternalProject_Add(geos | |
URL http://download.osgeo.org/geos/geos-3.6.2.tar.bz2 | |
# URL_HASH MD5=d41d8cd98f00b204e9800998ecf8427e | |
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> | |
BUILD_COMMAND "make" | |
) | |
ExternalProject_Add(sqlite3 | |
URL http://sqlite.org/2018/sqlite-autoconf-3220000.tar.gz | |
# URL_HASH MD5=d41d8cd98f00b204e9800998ecf8427e | |
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> | |
BUILD_COMMAND "make" | |
) | |
ExternalProject_Add(spatialite | |
URL http://www.gaia-gis.it/gaia-sins/libspatialite-4.3.0a.tar.gz | |
# URL_HASH MD5=d41d8cd98f00b204e9800998ecf8427e | |
DEPENDS proj | |
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --prefix=$PREFIX --enable-freexl=no --enable-libxml2=no --enable-epsg=no --enable-mathsql=no --enable-geocallbacks=no --enable-geosadvanced=yes --enable-lwgeom=no | |
BUILD_COMMAND "make" | |
) | |
add_custom_target( | |
ALL | |
DEPENDS proj geos sqlite3 spatialite | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment