ref #8 added description into cersion and crossplatform modules

This commit is contained in:
Andrei Yankovich 2021-04-20 11:21:22 +03:00
parent 6d3ee3c949
commit 74385f2ae7
2 changed files with 31 additions and 0 deletions

View File

@ -11,6 +11,24 @@ else()
set(PROJECT_VERSIONS_SUPPORT 1)
endif()
# This module contains function that sets version of the build libraryes.
# AVailable function
# setVersion - sets version for target with name PROJECT_NAME
# arguments :
# * maj - are number of majur version
# * min - are number of minor version
# * rev - are number of review version
#
# setVersionForTarget - sets version for target with a custom name.
# arguments :
# * target - are target name of the executable file or library.
# * maj - are number of majur version
# * min - are number of minor version
# * rev - are number of review version
#
#
# Note This module is deprecated.
#
function(setVersion maj min rev)
SET_TARGET_PROPERTIES(

View File

@ -13,6 +13,19 @@ endif()
# use TARGET_PLATFORM_TOOLCHAIN
# This module include crossplatform toolchains by target platform.
# To select target platform set the TARGET_PLATFORM_TOOLCHAIN define.
# Availabel platforms:
# * wasm32
# * win32-g++
# * win64-g++
#
# Note
# For add full support of the wasm32 build you shold use the initWasmSupport method. This method prepare static build for wasm executable and qt resources.
#
# initWasmSupport arguments:
# * name - This is name of your initialize targets. You can set it as a CMAKE_PROJECT
# * deployFile - This is path to the deploy file of the cqtdepoyer tool. Use it for deploy your site.
set(CROSSPLATFORM_BUILD_TOOLCHAIN_PATH ${CMAKE_CURRENT_LIST_DIR}/${CMAKE_HOST_SYSTEM_NAME}/${TARGET_PLATFORM_TOOLCHAIN}.cmake)