Chris Kay | 7466526 | 2021-03-09 18:57:01 +0000 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | cmake_minimum_required(VERSION 3.20) |
| 8 | |
| 9 | # |
| 10 | # We're done with very early setup, so we can now create the project. This will |
| 11 | # do some of the automatic compiler detection, which we need for setting up |
| 12 | # further configuration options. |
| 13 | # |
| 14 | # Note that this creates the following version variables: |
| 15 | # |
| 16 | # - `TFA_VERSION` |
| 17 | # - `TFA_VERSION_MAJOR` |
| 18 | # - `TFA_VERSION_MINOR` |
| 19 | # - `TFA_VERSION_PATCH` |
| 20 | # - `TFA_VERSION_TWEAK` |
| 21 | # |
| 22 | # Also, these directory variables: |
| 23 | # |
| 24 | # - `TFA_SOURCE_DIR` |
| 25 | # - `TFA_BINARY_DIR` |
| 26 | # |
| 27 | # Don't swap `C` and `ASM`. Per the CMake documentation: |
| 28 | # |
| 29 | # > If enabling `ASM`, list it last so that CMake can check whether compilers |
| 30 | # > for other languages like `C` work for assembly too. |
| 31 | # |
| 32 | |
| 33 | project(TFA VERSION 2.5 LANGUAGES C ASM) |