From bc2f5bc1039de5166e7b97115257b263bb38381e Mon Sep 17 00:00:00 2001 From: "a.yankovich" Date: Fri, 23 Oct 2020 14:10:20 +0300 Subject: [PATCH] added a new function for sets version for the custom target --- Version.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Version.cmake b/Version.cmake index a7a2beb..6202ca3 100644 --- a/Version.cmake +++ b/Version.cmake @@ -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()