forked from eclipse/kuksa.val
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (33 loc) · 1.57 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# ******************************************************************************
# Copyright (c) 2018 Robert Bosch GmbH and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/index.php
#
# Contributors:
# Robert Bosch GmbH - initial API and functionality
# *****************************************************************************
project(w3c-testclient)
######
# CMake configuration responsible for building kuksa-val optional test client
###
# Setup target names
set(TESTCLIENT_EXE_NAME "testclient" )
###
# Setup command-line options
###
# Setup targets
if(BUILD_TEST_CLIENT)
add_executable(${TESTCLIENT_EXE_NAME} testclient.cpp)
target_compile_features(${TESTCLIENT_EXE_NAME} PUBLIC cxx_std_14)
target_link_libraries(${TESTCLIENT_EXE_NAME} PRIVATE Threads::Threads)
target_link_libraries(${TESTCLIENT_EXE_NAME} PRIVATE jwt-cpp jsonpath jsoncons)
target_link_libraries(${TESTCLIENT_EXE_NAME} PRIVATE ${Boost_LIBRARIES})
target_link_libraries(${TESTCLIENT_EXE_NAME} PRIVATE ${OPENSSL_LIBRARIES})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../kuksa_certificates/Client.pem ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../kuksa_certificates/Client.key ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../kuksa_certificates/CA.pem ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
endif(BUILD_TEST_CLIENT)