[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)
alex85k
notifications at github.com
Fri Oct 16 08:23:41 UTC 2015
> +
> +CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)
> +
> +PROJECT(osm2pgsql)
> +
> +list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
> +
> +SET(DATA_DIR \".\")
> +
> +OPTION(BUILD_TESTS "Build with tests" OFF)
> +
> +if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
> + message(FATAL_ERROR "In-source builds are not allowed, please use a separate build directory like `mkdir biuld && cd build && cmake ..`")
> +endif()
> +
> +execute_process (COMMAND git describe OUTPUT_VARIABLE PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
This is version determining. Should we just hardcode it in CMakeLists.txt like was ``AC_INIT([osm2pgsql],[0.89.0-dev])`` or do something more intelligent?
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460/files#r42219074
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151016/41ccc601/attachment.html>
More information about the Tile-serving
mailing list