panda3d/cmake/macros/Versioning.cmake
Sam Edwards 2f6c79b9e6 CMake: Build libraries with VERSION/SOVERSION
This takes advantage of SONAME and versioning on platforms that support it.
2018-04-02 15:49:05 -06:00

7 lines
252 B
CMake

function(add_library target_name)
_add_library("${target_name}" ${ARGN})
set_target_properties("${target_name}" PROPERTIES
VERSION "${PROJECT_VERSION}"
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
endfunction(add_library)