File: ArmnnVersion.cmake

package info (click to toggle)
armnn 20.08-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 20,472 kB
  • sloc: cpp: 211,547; python: 2,756; sh: 285; makefile: 38; asm: 6
file content (19 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# Copyright © 2019 Arm Ltd. All rights reserved.
# SPDX-License-Identifier: MIT
#

# Read the ArmNN version components from file
file(READ ${CMAKE_CURRENT_LIST_DIR}/../include/armnn/Version.hpp armnnVersion)

# Parse the ArmNN version components
string(REGEX MATCH "#define ARMNN_MAJOR_VERSION ([0-9]*)" _ ${armnnVersion})
set(ARMNN_MAJOR_VERSION ${CMAKE_MATCH_1})
string(REGEX MATCH "#define ARMNN_MINOR_VERSION ([0-9]*)" _ ${armnnVersion})
set(ARMNN_MINOR_VERSION ${CMAKE_MATCH_1})

# Define LIB version
set(GENERIC_LIB_VERSION "${ARMNN_MAJOR_VERSION}.${ARMNN_MINOR_VERSION}")

# Define LIB soversion
set(GENERIC_LIB_SOVERSION "${ARMNN_MAJOR_VERSION}")