blob: 0f35bb2abf157211de60b6c266b7fa586b394a40 [file] [log] [blame]
julhal013ec4c322021-02-05 17:30:49 +00001#-------------------------------------------------------------------------------
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#-------------------------------------------------------------------------------
19include(${TS_ROOT}/deployments/libts/libts-import.cmake)
20target_link_libraries(ts-remote-test PRIVATE libts)
21
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#-------------------------------------------------------------------------------
31# Components that are common accross all deployments
32#
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)