julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Gyorgy Szing | ec62ea7 | 2022-07-20 12:36:52 +0000 | [diff] [blame] | 2 | # Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved. |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | #------------------------------------------------------------------------------- |
| 9 | # The base build file shared between deployments of 'ts-remote-test' for |
| 10 | # different environments. Acts as a client for tests running in a remote |
| 11 | # processing environment. |
| 12 | #------------------------------------------------------------------------------- |
| 13 | |
| 14 | #------------------------------------------------------------------------------- |
| 15 | # Use libts for locating and accessing services. An appropriate version of |
Gyorgy Szing | ec62ea7 | 2022-07-20 12:36:52 +0000 | [diff] [blame] | 16 | # libts will be imported for the environment in which tests are |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 17 | # deployed. |
| 18 | #------------------------------------------------------------------------------- |
Gabor Toth | 76909ad | 2024-09-25 15:23:21 +0200 | [diff] [blame] | 19 | if (COVERAGE) |
| 20 | set(LIBTS_BUILD_TYPE "DEBUGCOVERAGE" CACHE STRING "Libts build type" FORCE) |
| 21 | endif() |
| 22 | |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 23 | include(${TS_ROOT}/deployments/libts/libts-import.cmake) |
Gyorgy Szing | ec62ea7 | 2022-07-20 12:36:52 +0000 | [diff] [blame] | 24 | target_link_libraries(ts-remote-test PRIVATE libts::ts) |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 25 | |
| 26 | #------------------------------------------------------------------------------- |
| 27 | # Common main for all deployments |
| 28 | # |
| 29 | #------------------------------------------------------------------------------- |
| 30 | target_sources(ts-remote-test PRIVATE |
| 31 | "${CMAKE_CURRENT_LIST_DIR}/ts-remote-test.cpp" |
| 32 | ) |
| 33 | |
| 34 | #------------------------------------------------------------------------------- |
Gyorgy Szing | ec62ea7 | 2022-07-20 12:36:52 +0000 | [diff] [blame] | 35 | # Components that are common across all deployments |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 36 | # |
| 37 | #------------------------------------------------------------------------------- |
| 38 | add_components( |
| 39 | TARGET "ts-remote-test" |
| 40 | BASE_DIR ${TS_ROOT} |
| 41 | COMPONENTS |
| 42 | "components/app/remote-test-runner" |
| 43 | "components/common/tlv" |
Julian Hall | 99a57e3 | 2021-07-28 14:18:50 +0100 | [diff] [blame] | 44 | "components/service/common/include" |
| 45 | "components/service/common/client" |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 46 | "components/service/test_runner/client/cpp" |
| 47 | ) |
| 48 | |
| 49 | #------------------------------------------------------------------------------- |
| 50 | # Define install content. |
| 51 | # |
| 52 | #------------------------------------------------------------------------------- |
| 53 | if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
| 54 | set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE) |
| 55 | endif() |
Gyorgy Szing | 458c944 | 2022-01-07 08:23:42 +0100 | [diff] [blame] | 56 | install(TARGETS ts-remote-test RUNTIME DESTINATION ${TS_ENV}/bin) |