CMake/Version.cmake

24 lines
533 B
CMake
Raw Normal View History

2019-08-31 18:58:48 +03:00
#
# Copyright (C) 2018-2020 QuasarApp.
2019-08-31 18:58:48 +03:00
# Distributed under the MIT software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#
if(DEFINED PROJECT_VERSIONS_SUPPORT)
return()
else()
set(PROJECT_VERSIONS_SUPPORT 1)
endif()
2019-08-31 18:58:48 +03:00
function(setVersion maj min rev)
SET_TARGET_PROPERTIES(
${PROJECT_NAME}
PROPERTIES
VERSION "${maj}.${min}.${rev}"
SOVERSION "${maj}.${min}.${rev}"
)
endfunction()