mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
10 lines
355 B
CMake
10 lines
355 B
CMake
function(add_library target_name)
|
|
_add_library("${target_name}" ${ARGN})
|
|
get_target_property(type "${target_name}" TYPE)
|
|
if(type STREQUAL "SHARED_LIBRARY")
|
|
set_target_properties("${target_name}" PROPERTIES
|
|
VERSION "${PROJECT_VERSION}"
|
|
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
|
endif()
|
|
endfunction(add_library)
|