Imre Kis | 3b32e7b | 2020-11-24 00:33:01 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Gyorgy Szing | 877e5fb | 2022-07-20 12:33:35 +0000 | [diff] [blame^] | 2 | # Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved. |
Imre Kis | 3b32e7b | 2020-11-24 00:33:01 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | if (NOT DEFINED TGT) |
| 8 | message(FATAL_ERROR "mandatory parameter TGT is not defined.") |
| 9 | endif() |
| 10 | |
| 11 | |
| 12 | target_include_directories(${TGT} |
| 13 | PUBLIC |
Gyorgy Szing | 877e5fb | 2022-07-20 12:33:35 +0000 | [diff] [blame^] | 14 | "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>" |
| 15 | "$<INSTALL_INTERFACE:${TS_ENV}/include>" |
Imre Kis | 3b32e7b | 2020-11-24 00:33:01 +0100 | [diff] [blame] | 16 | ) |
Gyorgy Szing | 877e5fb | 2022-07-20 12:33:35 +0000 | [diff] [blame^] | 17 | |
| 18 | set_property(TARGET ${TGT} APPEND PROPERTY PUBLIC_HEADER |
| 19 | "${CMAKE_CURRENT_LIST_DIR}/include/util.h" |
| 20 | "${CMAKE_CURRENT_LIST_DIR}/include/compiler.h" |
| 21 | ) |