[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)
Rolf Eike Beer
notifications at github.com
Sat Oct 17 12:55:24 UTC 2015
> +
> +message("Libraries used to build: " ${LIBS})
> +
> +
> +#############################################################
> +# Build there library and executable file
> +#############################################################
> +
> +set(HAVE_PTHREAD "${CMAKE_USE_PTHREADS_INIT}")
> +CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmake/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
> +
> +if (NOT HAVE_UNISTD_H)
> + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unistd.h "// empty header\n")
> +endif()
> +
> +include_directories(${CMAKE_CURRENT_BINARY_DIR}) # for generated files
set(CMAKE_INCLUDE_CURRENT_DIR On)
This will automatically add the current source and binary dir to the include path.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460/files#r42309011
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151017/e49953fa/attachment.html>
More information about the Tile-serving
mailing list