blob: 7e5b2868414f2dcd66b11f27e878683a5f5fa970 [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"
40 "components/service/test_runner/client/cpp"
41)
42
43#-------------------------------------------------------------------------------
44# Define install content.
45#
46#-------------------------------------------------------------------------------
47if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
48 set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE)
49endif()
50install(TARGETS ts-remote-test RUNTIME DESTINATION bin)