Skip to content

Commit 60bc6ec

Browse files
authored
Back to installing header files and lib (#7140)
1 parent 65d4993 commit 60bc6ec

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,43 @@ set_property(TARGET osrm-contract PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
535535
set_property(TARGET osrm-datastore PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
536536
set_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+
538559
install(TARGETS osrm-extract DESTINATION bin)
539560
install(TARGETS osrm-partition DESTINATION bin)
540561
install(TARGETS osrm-customize DESTINATION bin)
541562
install(TARGETS osrm-contract DESTINATION bin)
542563
install(TARGETS osrm-datastore DESTINATION bin)
543564
install(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
546576
set(DefaultProfilesDir profiles)
547577
install(DIRECTORY ${DefaultProfilesDir} DESTINATION share/osrm)

0 commit comments

Comments
 (0)