Set the version number for the shared library

This commit is contained in:
Tom Hughes 2021-01-03 11:03:04 +00:00
parent d77e04b6eb
commit 745b765b89
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ add_library(osmpbf_shared SHARED ${CPPS})
target_link_libraries(osmpbf_shared PRIVATE protobuf::libprotobuf)
target_include_directories(osmpbf_shared SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS})
set_target_properties(osmpbf_shared PROPERTIES OUTPUT_NAME osmpbf)
set_target_properties(osmpbf_shared PROPERTIES VERSION 1.5.0)
set_target_properties(osmpbf_shared PROPERTIES SOVERSION 1)
install(TARGETS osmpbf_shared LIBRARY DESTINATION lib)
install(FILES ${CMAKE_SOURCE_DIR}/include/osmpbf/osmpbf.h