julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +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 | |
| 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 |
| 16 | # libts will be imported for the enviroment in which tests are |
| 17 | # deployed. |
| 18 | #------------------------------------------------------------------------------- |
| 19 | include(${TS_ROOT}/deployments/libts/libts-import.cmake) |
| 20 | target_link_libraries(ts-remote-test PRIVATE libts) |
| 21 | |
| 22 | #------------------------------------------------------------------------------- |
| 23 | # Common main for all deployments |
| 24 | # |
| 25 | #------------------------------------------------------------------------------- |
| 26 | target_sources(ts-remote-test PRIVATE |
| 27 | "${CMAKE_CURRENT_LIST_DIR}/ts-remote-test.cpp" |
| 28 | ) |
| 29 | |
| 30 | #------------------------------------------------------------------------------- |
| 31 | # Components that are common accross all deployments |
| 32 | # |
| 33 | #------------------------------------------------------------------------------- |
| 34 | add_components( |
| 35 | TARGET "ts-remote-test" |
| 36 | BASE_DIR ${TS_ROOT} |
| 37 | COMPONENTS |
| 38 | "components/app/remote-test-runner" |
| 39 | "components/common/tlv" |
Julian Hall | 99a57e3 | 2021-07-28 14:18:50 +0100 | [diff] [blame] | 40 | "components/service/common/include" |
| 41 | "components/service/common/client" |
julhal01 | 3ec4c32 | 2021-02-05 17:30:49 +0000 | [diff] [blame] | 42 | "components/service/test_runner/client/cpp" |
| 43 | ) |
| 44 | |
| 45 | #------------------------------------------------------------------------------- |
| 46 | # Define install content. |
| 47 | # |
| 48 | #------------------------------------------------------------------------------- |
| 49 | if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
| 50 | set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE) |
| 51 | endif() |
Julian Hall | 99a57e3 | 2021-07-28 14:18:50 +0100 | [diff] [blame] | 52 | install(TARGETS ts-remote-test RUNTIME DESTINATION bin) |