added a new function for sets version for the custom target

This commit is contained in:
Andrei Yankovich 2020-10-23 14:10:20 +03:00
parent 93ff4e899e
commit bc2f5bc103

View File

@ -21,3 +21,14 @@ function(setVersion maj min rev)
)
endfunction()
function(setVersionForTarget TERAGET maj min rev)
SET_TARGET_PROPERTIES(
${TERAGET}
PROPERTIES
VERSION "${maj}.${min}.${rev}"
SOVERSION "${maj}.${min}.${rev}"
)
endfunction()