[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)

Rolf Eike Beer notifications at github.com
Sat Oct 17 17:37:35 UTC 2015


> +include(Dart)
> +
> +foreach (test ${TESTS})
> +  get_filename_component(test_name ${test} NAME_WE)
> +  add_executable(${test_name} ${test})
> +  target_link_libraries(${test_name} osm2pgsql_lib common-pg middle-tests)
> +  add_test(NAME ${test_name} COMMAND ${test_name}
> +    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
> +  set_property(TEST ${test_name} APPEND PROPERTY ENVIRONMENT srcdir=${CMAKE_SOURCE_DIR})
> +  message(STATUS "Added test: ${test_name}...")
> +endforeach(test)
> +
> +find_package(PythonInterp)
> +
> +if (PYTHONINTERP_FOUND)
> +  add_test(NAME regression-test-pbf COMMAND python tests/regression-test.py -f tests/liechtenstein-2013-08-03.osm.pbf

If you use FindPythonInterp, you should also use ${PYTHON_EXECUTABLE} instead of "python".

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460/files#r42311781
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151017/fcdd01de/attachment.html>


More information about the Tile-serving mailing list