@@ -535,13 +535,43 @@ set_property(TARGET osrm-contract PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
535535set_property (TARGET osrm-datastore PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE )
536536set_property (TARGET osrm-routed PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE )
537537
538+ file (GLOB FlatbuffersGlob third_party/flatbuffers/include /flatbuffers/*.h)
539+ file (GLOB LibraryGlob include /osrm/*.hpp)
540+ file (GLOB ParametersGlob include /engine/api/*_parameters.hpp)
541+ set (ApiHeader include /engine/api/base_result.hpp)
542+ set (EngineHeader include /engine/status .hpp include /engine/engine_config.hpp include /engine/hint.hpp include /engine/bearing.hpp include /engine/approach.hpp include /engine/phantom_node.hpp)
543+ set (UtilHeader include /util/coordinate.hpp include /util/json_container.hpp include /util/typedefs.hpp include /util/alias.hpp include /util/exception.hpp include /util/bearing.hpp)
544+ set (ExtractorHeader include /extractor/extractor.hpp include /storage/io_config.hpp include /extractor/extractor_config.hpp include /extractor/travel_mode.hpp)
545+ set (PartitionerHeader include /partitioner/partitioner.hpp include /partitioner/partitioner_config.hpp)
546+ set (ContractorHeader include /contractor/contractor.hpp include /contractor/contractor_config.hpp)
547+ set (StorageHeader include /storage/storage.hpp include /storage/io_config.hpp include /storage/storage_config.hpp)
548+ install (FILES ${EngineHeader} DESTINATION include /osrm/engine)
549+ install (FILES ${UtilHeader} DESTINATION include /osrm/util)
550+ install (FILES ${StorageHeader} DESTINATION include /osrm/storage)
551+ install (FILES ${ExtractorHeader} DESTINATION include /osrm/extractor)
552+ install (FILES ${PartitionerHeader} DESTINATION include /osrm/partitioner)
553+ install (FILES ${ContractorHeader} DESTINATION include /osrm/contractor)
554+ install (FILES ${LibraryGlob} DESTINATION include /osrm)
555+ install (FILES ${ParametersGlob} DESTINATION include /osrm/engine/api)
556+ install (FILES ${ApiHeader} DESTINATION include /osrm/engine/api)
557+ install (FILES ${FlatbuffersGlob} DESTINATION include /flatbuffers)
558+
538559install (TARGETS osrm-extract DESTINATION bin)
539560install (TARGETS osrm-partition DESTINATION bin)
540561install (TARGETS osrm-customize DESTINATION bin)
541562install (TARGETS osrm-contract DESTINATION bin)
542563install (TARGETS osrm-datastore DESTINATION bin)
543564install (TARGETS osrm-routed DESTINATION bin)
544565
566+ install (TARGETS osrm DESTINATION lib)
567+ install (TARGETS osrm_extract DESTINATION lib)
568+ install (TARGETS osrm_partition DESTINATION lib)
569+ install (TARGETS osrm_customize DESTINATION lib)
570+ install (TARGETS osrm_update DESTINATION lib)
571+ install (TARGETS osrm_contract DESTINATION lib)
572+ install (TARGETS osrm_store DESTINATION lib)
573+ install (TARGETS osrm_guidance DESTINATION lib)
574+
545575# Install profiles and support library to /usr/local/share/osrm/profiles by default
546576set (DefaultProfilesDir profiles)
547577install (DIRECTORY ${DefaultProfilesDir} DESTINATION share/osrm)
0 commit comments