diff --git a/CMakeLists.txt b/CMakeLists.txt index 656547c..8689cca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,10 +73,14 @@ if(BUILD_LIBOSRM) add_custom_command(OUTPUT ${BINDING_DIR}/osrm-datastore COMMAND ${CMAKE_COMMAND} -E copy $ ${BINDING_DIR} DEPENDS osrm-datastore ${BINDING_DIR}) + add_custom_command(OUTPUT ${BINDING_DIR}/osrm-components + COMMAND ${CMAKE_COMMAND} -E copy $ ${BINDING_DIR} + DEPENDS osrm-components ${BINDING_DIR}) list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-extract") list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-contract") list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-routed") list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-datastore") + list(APPEND OSRM_BINARIES "${BINDING_DIR}/osrm-components") else() # These will be set by the find script # LibOSRM_INCLUDE_DIRS diff --git a/Makefile b/Makefile index 1179a4d..0925f0d 100755 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ node_modules: package.json build/%/node-osrm.node: ./node_modules mkdir -p build &&\ cd build &&\ - cmake .. -DCMAKE_BUILD_TYPE=$* -DBUILD_LIBOSRM=On -DENABLE_LTO=ON &&\ + cmake .. -DCMAKE_BUILD_TYPE=$* -DBUILD_LIBOSRM=On -DENABLE_LTO=On &&\ VERBOSE=1 make -j${JOBS} &&\ cd .. diff --git a/README.md b/README.md index 1938695..23ab63c 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,8 @@ osrm.route({coordinates: [[13.388860,52.517037], [13.39319,52.533976]]}, (err, r }); ``` +We also ship the `osrm-components` binary which allows you to extract a GeoJSON file showing connectivity issues (small components) in the road network. + See the [full documentation](docs/api.md) for more examples. # Source Build