Warning, /graphics/glaxnimate/external/Qt-Color-Widgets/cmake/versioning.cmake is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2013-2023 Mattia Basaglia <dev@dragon.best>
0002 # SPDX-License-Identifier: BSD-2-Clause
0003 include (ProjectVersioning)
0004 
0005 function (generate_versioning_information
0006     TARGET_NAME i_target_name
0007     EXPORT_HEADER i_export_header
0008     EXPORT_MACRO i_export_macro
0009     VERSIONED_ENTITY i_versioned_entity
0010     INCLUDE_PREFIX i_include_prefix
0011     COMPANY_NAME i_company_name
0012     COMPANY_COPYRIGHT i_company_copyright
0013     FILE_DESCRIPTION i_file_description
0014 )
0015     target_version_information (
0016         TARGET_NAME ${i_target_name}
0017         EXPORT_HEADER ${i_export_header}
0018         EXPORT_MACRO ${i_export_macro}
0019         VERSIONED_ENTITY ${i_versioned_entity}
0020     )
0021 
0022     if (WIN32)
0023         include (generate_product_version)
0024 
0025         get_target_property (gitDescribe
0026         ${i_target_name} GIT_DESCRIBE)
0027 
0028         get_target_property (gitUntracked
0029         ${i_target_name} GIT_UNTRACKED_FILES)
0030 
0031         generate_product_version (
0032             win32VersionInfoFiles
0033             NAME ${i_versioned_entity}
0034             VERSION_MAJOR ${${i_versioned_entity}_VERSION_MAJOR}
0035             VERSION_MINOR ${${i_versioned_entity}_VERSION_MINOR}
0036             VERSION_PATCH ${${i_versioned_entity}_VERSION_PATCH}
0037             COMPANY_NAME ${i_company_name}
0038             COMPANY_COPYRIGHT ${i_company_copyright}
0039             COMMENTS "${gitDescribe}${gitUntracked}"
0040             FILE_DESCRIPTION ${i_file_description}
0041         )
0042 
0043         target_sources (${i_target_name} PRIVATE ${win32VersionInfoFiles})
0044     endif (WIN32)
0045 endfunction (generate_versioning_information)