blob: ada5d1a7324b31fc9387439304c18f3a8512a4a2 [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#-------------------------------------------------------------------------------
Gabor Toth76909ad2024-09-25 15:23:21 +020019if (COVERAGE)
20 set(LIBTS_BUILD_TYPE "DEBUGCOVERAGE" CACHE STRING "Libts build type" FORCE)
21endif()
22
julhal013ec4c322021-02-05 17:30:49 +000023include(${TS_ROOT}/deployments/libts/libts-import.cmake)
Gyorgy Szingec62ea72022-07-20 12:36:52 +000024target_link_libraries(ts-remote-test PRIVATE libts::ts)
julhal013ec4c322021-02-05 17:30:49 +000025
26#-------------------------------------------------------------------------------
27# Common main for all deployments
28#
29#-------------------------------------------------------------------------------
30target_sources(ts-remote-test PRIVATE
31 "${CMAKE_CURRENT_LIST_DIR}/ts-remote-test.cpp"
32)
33
34#-------------------------------------------------------------------------------
Gyorgy Szingec62ea72022-07-20 12:36:52 +000035# Components that are common across all deployments
julhal013ec4c322021-02-05 17:30:49 +000036#
37#-------------------------------------------------------------------------------
38add_components(
39 TARGET "ts-remote-test"
40 BASE_DIR ${TS_ROOT}
41 COMPONENTS
42 "components/app/remote-test-runner"
43 "components/common/tlv"
Julian Hall99a57e32021-07-28 14:18:50 +010044 "components/service/common/include"
45 "components/service/common/client"
julhal013ec4c322021-02-05 17:30:49 +000046 "components/service/test_runner/client/cpp"
47)
48
49#-------------------------------------------------------------------------------
50# Define install content.
51#
52#-------------------------------------------------------------------------------
53if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
54 set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH "location to install build output to." FORCE)
55endif()
Gyorgy Szing458c9442022-01-07 08:23:42 +010056install(TARGETS ts-remote-test RUNTIME DESTINATION ${TS_ENV}/bin)