blob: c310445d06ae2ee255578767acb73fa959a6becb [file] [log] [blame]
julhal013ec4c322021-02-05 17:30:49 +00001#-------------------------------------------------------------------------------
Gyorgy Szingec62ea72022-07-20 12:36:52 +00002# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
julhal013ec4c322021-02-05 17:30:49 +00003#
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 Szingec62ea72022-07-20 12:36:52 +000016# libts will be imported for the environment in which tests are
julhal013ec4c322021-02-05 17:30:49 +000017# deployed.
18#-------------------------------------------------------------------------------
19include(${TS_ROOT}/deployments/libts/libts-import.cmake)
Gyorgy Szingec62ea72022-07-20 12:36:52 +000020target_link_libraries(ts-remote-test PRIVATE libts::ts)
julhal013ec4c322021-02-05 17:30:49 +000021
22#-------------------------------------------------------------------------------
23# Common main for all deployments
24#
25#-------------------------------------------------------------------------------
26target_sources(ts-remote-test PRIVATE
27 "${CMAKE_CURRENT_LIST_DIR}/ts-remote-test.cpp"
28)
29
30#-------------------------------------------------------------------------------
Gyorgy Szingec62ea72022-07-20 12:36:52 +000031# Components that are common across all deployments
julhal013ec4c322021-02-05 17:30:49 +000032#
33#-------------------------------------------------------------------------------
34add_components(
35 TARGET "ts-remote-test"
36 BASE_DIR ${TS_ROOT}
37 COMPONENTS
38 "components/app/remote-test-runner"
39 "components/common/tlv"
Julian Hall99a57e32021-07-28 14:18:50 +010040 "components/service/common/include"
41 "components/service/common/client"
julhal013ec4c322021-02-05 17:30:49 +000042 "components/service/test_runner/client/cpp"
43)
44
45#-------------------------------------------------------------------------------
46# Define install content.
47#
48#-------------------------------------------------------------------------------
49if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
50 set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE)
51endif()
Julian Hall99a57e32021-07-28 14:18:50 +010052install(TARGETS ts-remote-test RUNTIME DESTINATION bin)