Add soname for shared library (#30)

Closes #29
This commit is contained in:
Benson Muite 2025-09-22 06:01:30 +03:00 committed by GitHub
parent 2358570c5c
commit 4fe19f1f34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,11 @@ add_library(
src/openarm/damiao_motor/dm_motor_control.cpp src/openarm/damiao_motor/dm_motor_control.cpp
src/openarm/damiao_motor/dm_motor_device.cpp src/openarm/damiao_motor/dm_motor_device.cpp
src/openarm/damiao_motor/dm_motor_device_collection.cpp) src/openarm/damiao_motor/dm_motor_device_collection.cpp)
set_target_properties(openarm_can PROPERTIES POSITION_INDEPENDENT_CODE ON) set_target_properties(
openarm_can
PROPERTIES POSITION_INDEPENDENT_CODE ON
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR})
set(USE_FILE_SET_HEADERS FALSE) set(USE_FILE_SET_HEADERS FALSE)
# Meson doesn't support FILE_SET TYPE HEADERS... # Meson doesn't support FILE_SET TYPE HEADERS...
# if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.23) # if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.23)